User Tools

Site Tools


prop_type.htm
Navigation:  Language Reference > App C - PROP: Runtime Properties > Complete Property List >====== PROP:Type ====== Previous pageReturn to chapter overviewNext page

Contains the type of control. Values are the CREATE:xxxx equates (listed in EQUATES.CLW). (READ-ONLY)

NoteBox.jpg

PROP:Type has a different usage when used with FILE structures. Jump here to review this.

Example:

MyField  STRING(1)

?MyField EQUATE(100)

WinView   WINDOW('View'),AT(0,0,320,200),MDI,MAX,HVSCROLL

     END

CODE

OPEN(WinView)

IF UserChoice = 'CheckField'

 CREATE(?MyField,CREATE:Check)

ELSE

 CREATE(?MyField,CREATE:Entry)

END

?MyField{PROP:Use} = MyField

SETPOSITION(?MyField,10,10)

IF ?MyField{PROP:Type} = CREATE:Check      !Check control type

 ?MyField{PROP:TrueValue} = 'T'

 ?MyField{PROP:FalseValue} = 'F'

END

ACCEPT

END

prop_type.htm.txt · Last modified: 2021/04/15 15:57 (external edit)