Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug ?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Bug ?
Miscellaneous
Thread ID:
00751012
Message ID:
00751012
Views:
60
This works fine in VFP7 (Except for the try-catch) The line This.Label1.Caption = "=" causes a Syntax error and is not catched by the try-catch. Looks like a compile time error.

Can anyone confirm it's bug? Any workaround ?
ox = CREATEOBJECT("TestForm")
ox.Show()

DEFINE CLASS Testform  As Form

	ADD OBJECT label1 AS label WITH ;
		Left = 70, ;
		Top = 76, ;
		Name = "label1"
	
	FUNCTION Init()
		
		try 
			This.Label1.Caption = "test" && Works fine
			This.Label1.Caption = "=" && Works but cause a Syntax error
		catch to oerr
			? oerr.Message
		endtry

	ENDFUNC


ENDDEFINE
Next
Reply
Map
View

Click here to load this message in the networking platform