Changing Text on individual Control in a Control Array

Started by kunhock, May 27, 2007, 07:18:01 PM

Previous topic - Next topic

kunhock

How to direct ff_command so that it targets only to individual control inside a control array?

Precompiler does not seem to accept code such as :

ff_Control_SetText Hwnd_Form1_MyControlArray(MyControlIndex) ,"My Text"


TechSupport

FireFly does allow setting text using control arrays so I need to ask you two questions:

(1) What type of control are you trying to set up in a control array? (e.g. Command Buttons, TextBoxes, etc...). It could be that the FF_Control_SetText is not the right command you need - it depends on the type of control.

(2) Is the value for "MyControlIndex" within the bounds of the array? Remember that control arrays are zero based.

When you are in the code editor, press "F4" to view all the handles and control id's for all of the controls/forms in your project. The control array handles should show there. For example: HWND_FORM1_TEXT1(1)


kunhock

Oh ..thanks for the response.

Yes, after being confirmed that FF supports this feature. I did find the problem is at somewhere else. Regards.