>I have a grid based object and when adding the object to a form based
>class and double clicking on individuals cells the code for that text box
>will not activate. I want to load a another form based on the information in that entry in the grid. Originally I just placed a grid on the form and
>it would work fine but now when using addobject() it wont work. I can just
>put a messageobox() to test and it is as if the textbox in that column
>is no longer getting the focus or something.
>
>??
>
>Ronnie
The CurrentControl for this column should be set to be this new class.
Example:
if this.lIncremental and lcFieldType='C' && We would use this feature only for char fields
if lower(loColumn.currentcontrol)='text1' && standard text1 control
loColumn.removeobject('text1')
loColumn.newobject('text1','ingrid','wgcontrols.vcx') && Incremental search textbox
loColumn.text1.visible=.t.
loColumn.text1.cLocateExpression='upper('+lcFieldName+')'
endif
endif
If it's not broken, fix it until it is.
My Blog