|
Previous Top Next |
Prototype: | (String pLabel, Byte pUpper),String |
pLabel | The Field EQuate label name. |
pUpper | Indicates if the Base name should be uppercased before it is returned |
Returns | String containing the field name |
This method is called by the GetBaseControName function with the label of the control to get the base control name for. The base control name is for example ?INSERT for an control called ?INSERT:3 i.e. it strips any numbers off of the end so any control with that base name can be address for example when looping through all controls on a window or a report.
Example:
ITW ITWindowsClass
Code
LoadControlQ ROUTINE
Data
I Long
Code
Loop I = FirstField() To LastField()
Loc:CQ.Loc:CQName = ITW.GetControlName(I)
Loc:CQ.Loc:CQBaseName = ITW.GetBaseControlName(I)
Add(Loc:CQ)
End
Below is a screenshot of the Loc:CQ in a listbox. Please note the ?BUTTON:2 and ?BUTTON:3 in the Control Name column and also in the Base Name column. Also note that ?CLOSE has not changed.
See also: