Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it an Editor error?
Message
De
24/05/1998 23:17:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Is it an Editor error?
Divers
Thread ID:
00101589
Message ID:
00101589
Vues:
58
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform