Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Whats wrong with this code?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Whats wrong with this code?
Miscellaneous
Thread ID:
00630881
Message ID:
00630881
Views:
64
Hi All

The following code was generated by the save as class method. However, when I run it as a prg I get a syntax error at the line marked. I also get a syntax error in my compiled program, but not consistently. Hence me trying to debug it in steps. Can anyone help please!

Thanks in advance

Derek.....

x = createobject('test3')
x.show()


DEFINE CLASS test3 AS form


DoCreate = .T.
Name = "form1"

ADD OBJECT grid1 AS grid WITH ;
ColumnCount = 2, ;
Height = 200, ;
Left = 21, ;
RecordSource = "position", ;
Top = 7, ;
Width = 320, ;
Name = "Grid1", ;
Column1.ControlSource = "position.moatid", ;
Column1.Width = 75, ;
Column1.Name = "Column1", ;
Column2.ControlSource = "position.desc", ;
Column2.Width = 75, ;
Column2.Name = "Column2"

* The following line generates a syntax error!!!!!

ADD OBJECT test3.grid1.column1.header1 AS header WITH ;
Caption = "Moatid", ;
Name = "Header1"
Next
Reply
Map
View

Click here to load this message in the networking platform