Tech Tip: Utility method to obtain list of objects and Help Tips on a form
PRODUCT: 4D | VERSION: 14.3 | PLATFORM: Mac & Win
Published On: February 27, 2015
Below is a method to obtain a list of objects and the assigned Help Tips. This can be helpful in searching through forms and making sure that the help tips are correctly assigned.
Below is an example of using the Method on a Form. The Method is added to one of the buttons and all of the buttons except for "Button3" have a help tip.

The method is used in one of the buttons as shown:
The results in $tip_at:

// Method: HelpTipArr // Description: Will return in the passed // array pointer a list of objects and the // help tips assigned // $1 - Pointer to the Array to contain the result C_POINTER($1->) If (Count parameters>0) ARRAY TEXT($objectTip_at;0) C_LONGINT($i) FORM GET OBJECTS($objectTip_at) For ($i;1;Size of array($objectTip_at) $objectTip_at{$i}:=$objectTip_at{$i}+" : "+OBJECT Get help tip(*;$objectTip_at{$i}) End for COPY ARRAY($objectTip_at;$1->) End if |
Below is an example of using the Method on a Form. The Method is added to one of the buttons and all of the buttons except for "Button3" have a help tip.

The method is used in one of the buttons as shown:
ARRAY TEXT($tip_at;0) HelpTipArr (->$tip_at) |
The results in $tip_at:
