Search:     Advanced search

function NewLabel(Left, Top, Caption)

Article ID: 312
Last updated: 24 Sep, 2010
Views: 938
Posted: 11 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

 

Description:

Creates a new text label. (Returns an object of class TLabel.)

Notes:

Parameters

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

Top ( This is an integer value for the top position of the label on the form.)

Caption ( This is a string value for the caption of the label.)

This Example will display a label on a sample form with the caption of Name.  Copy and paste code into a New PlanSwift Script.

Pascal Example:

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

Visual Basic Example:

Form = NewForm(230,150, "SampleForm")
NewLabel(26,23,"Name")
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 NewForm(FormWidth, FormHeight, Caption)     function NewEdit(Left, Top, DefaultText = "")