Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and Double-Click Event
Message
 
 
To
19/06/2001 13:43:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00520905
Message ID:
00521162
Views:
20
>:)
>Click grid(s) and run your custom .prg from command window.
>
>
*custom builder not registered
>aselobj(arrObj)
>for each oObj in arrObj
>if upper(oObj.Baseclass)='GRID'
> for each oColumn in oObj.columns
>   oColumn.Removeobject(...
>
Cetin

Doesn't seem to be difficult after you provide the code :) Great, thanks a lot.
********************************************************************
*  Description.......: GridBuilder - allows to build a grid in design-time
*  Calling Samples...:
*  Parameter List....:
*  Created by........: Cetin Basoz
*  Modified by.......:
********************************************************************
*custom builder not registered
aselobj(arrObj)
for each oObj in arrObj
     if upper(oObj.baseclass)='GRID'
          for each oColumn in oObj.columns
              if type('oColumn.text1')="O"
                   oColumn.removeobject('text1')
               endif    
               oColumn.newobject('text1','ingrid','wgcontrols.vcx')
          next
     endif
next
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform