Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to add a FOR loop to update a grid?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00255835
Message ID:
00256034
Views:
31
>>>
>>>You can't add code to a method at runtime. You'll have to wither manually add this code to each textbox in the grid, or create a textbox class that has this code in it, and loop through the columns at runtime, adding this subclassed textbox and removing the stock textbox.
>>
>>How about the .setall ?
>>
>>You can change back color and other things with it. It compiles and does not error in the init for the grid. It just does not work when the dblclick takes place.
>>
>>ceffect1= "ThisForm.pgfBizObj.ActivePage = ThisForm.nGoToPageOnEdit"
>>this.SetAll("dblclick", ceffect1 , "text")
>>
>>
>>Thanks.
>
>There is a difference betwen setting a property and writing code. SetAll is made to set a property for a group of controls, and cannot be used to fill code in. You might also come accross WriteMethod- this is used for writing code to a control, but can only be used at design time. For details about how to switch out a grid control at runtime, check out my article here in the knowledge base called "A smarter grid" or something like that.

Thanks Eric.
Previous
Reply
Map
View

Click here to load this message in the networking platform