Search:     Advanced search

function NewEdit(Left, Top, DefaultText = "")

Article ID: 313
Last updated: 24 Sep, 2010
Views: 854
Posted: 12 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

 

 

Description:

Creates a new edit box. (Returns an object of class TEdit)

Notes:

Parameters

Left ( This is an integer value for the left position of the edit box on the form.)

Top ( This is an interger value for the top position of the edit box on the form.)

Default Text ( This is a string value for the default edit text.)

This example will display a sample form with the name label and a edit box with the default text of New Area.  Copy and paste the code into a New PlanSwift Script.

Pascal Example:

Form := NewForm(230,150,'Sample Form');
NewLabel(26,23,'Name:');
NewEdit(60,20,'New Area');
if Form.ShowModal <> mrOk Then
  Exit;

Visual Basic Example:

Form = NewForm(230,150,"Sample Plan");
NewLabel(26,23'Name')
NewEdit(60,20,"New Area")
if Form.ShowModal <> mrOk Then
  Exit Function
End if


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
function NewLabel(Left, Top, Caption)     function NewButton(Left, Top, Caption, ButtonType = mrNone)