General information
Category:
Coding, syntax & commands
Title:
Whats wrong with this code?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only