Controls

ID #1057

How to know the equate name of the control at run-time?

  1. You may use undocumented procedure:
    ClaFieldName(LONG),NAME('Cla$FieldName'),CSTRING,PROC

  2. As mention above function is undocumented you may use legally user template (EXTENSION) that generates queue like:
    		ControlNameQueue QUEUE
    		Feq                UNSIGNED
    		Name               STRING(100) ! or ASTRING
    		                 END
    		Run though all control and generate code for its fill:
    		#FOR(%Control)
    		  #IF(%Control)
    		ControlNameQueue.Feq  = %Control
    		ControlNameQueue.Name = '%Control'
    		ADD(ControlNameQueue)
    		  #ENDIF
    		#ENDFOR
    		SORT(ControlNameQueue, ControlNameQueue.Feq)
    		After that equate name of control will be exctacted easy. 
    		

Tags: control, equate

Related entries:

Last update: 2007-10-18 16:18
Author: Valentin Babaev
Revision: 1.12

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 5 out of 5 (1 Votes )

completely useless 1 2 3 4 5 most valuable

You can comment on this entry