Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This value is often of use in accessing data. For example, if you want to replace existing data in a column referenced by a control with a user-supplied string to each data item, you could use the POS property to find the position of the associated column in the data table, then write the new data to the data table.

See Also

PART propertyID propertyMV propertyTYPE property

Example

Code Block
function KeyControls(Window)
* returns an @fm-delimited list of key controls
declare function Get_Property
 
* get list of all controls
CtrlList = Get_Property(Window, "CTRLMAP")
convert @fm to @rm in CtrlList
 
* get field positions of all controls
PosList = Get_Property(CtrlList, str("POS": @rm, | count(CtrlList, @rm)): "POS")
 
* build list of keys
KeyList = ""
loop
  locate "0" in PosList using @rm setting Pos else Pos = 0
while Pos
  KeyList<-1> = field(CtrlList, @rm, Pos)
  PosList = field(PosList, @rm, Pos+1, 999) ; * create new PosList
CtrlList = field(CtrlList, @rm, Pos+1, 999) ; * create new CtrlList
 
repeat
 
return KeyList