Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't use the class generated from form ?
Message
From
27/12/2000 12:53:23
 
 
To
27/12/2000 00:42:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00456977
Message ID:
00457011
Views:
30
>I can't use the class which generated from the view source function in class viewer.
>
>the generated class is as followed :
>
>define class abc as customform
>
> grid1.columncount = 1
> grid1.column1.controlsource ='cust.custname'
>...
> add object grid1.column1.header1 as header with caption = "test" <<<----Syntex Error
>....
>enddefine
>
>vfp said that the add object line in the generated class has syntex Error
>but I didn't modify the generated source
>
>Can anyone help me ..
>
>thanks

The code from the Class Browser does not handle containership in a manner that you can just "cut & paste". You'd have to manually modify the code to add the objects at the proper level.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform