www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Windows Class: GetBaseControlName

Previous  Top  Next  


Prototype: (String pLabel, Byte pUpper),String

 

pLabelThe Field EQuate label name.

 

pUpperIndicates if the Base name should be uppercased before it is returned

 

ReturnsString 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

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.

 

ControlNames

 

See also:

GetControlName

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getbasecontrolname_window.htm