Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it an Editor error?
Message
From
24/05/1998 23:17:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Is it an Editor error?
Miscellaneous
Thread ID:
00101589
Message ID:
00101589
Views:
57
Please try to paste the following code if error occur??
The Editor claim there is a syntax error.
WITH THISFORM
IF !PEMSTATUS(THISFORM, [D], 5)
	.ADDOBJECT([D], [TXTDATE])
	.D.MOVE(250,350) && This line got error
	.D.BORDERSTYLE = 1
	.D.SPECIALEFFECT = 0
	.D.VALUE = DATE()
	.D.CONTROLSOURCE = _DIARYDATE
	.D.VISIBLE = .T.
endif
endwith


But no error on following code:
WITH THISFORM
IF !PEMSTATUS(THISFORM, [D], 5)
	.ADDOBJECT([D], [TXTDATE])
	THISFORM.D.MOVE(250,350) && This line alright now!
	.D.BORDERSTYLE = 1
	.D.SPECIALEFFECT = 0
	.D.VALUE = DATE()
	.D.CONTROLSOURCE = _DIARYDATE
	.D.VISIBLE = .T.
endif
endwith
This is totally strange because other function for Thisform.D has no problem but Move() got problem.

Of cos, if I change the coding without using With..EndWith
Everything alright!!

So, I want to know is it an Editor error when Move() Statement is inside With..EndWith Block!!

if so, I will avoid to use any With..EndWith Block!

Thanks for attention!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Next
Reply
Map
View

Click here to load this message in the networking platform