Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it an Editor error?
Message
De
25/05/1998 00:47:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/05/1998 23:17:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00101589
Message ID:
00101597
Vues:
19
>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!
Justok,
It's "D" causing problem. Up to "K" you should avoid one char names. Because coming from old FP up to "J" they are also workareas 1-10.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform