Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Error on .AddProperty
Message
 
 
À
27/02/2009 09:00:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01384470
Message ID:
01384508
Vues:
57
>>> What object WITH is referring to in this case? Are you sure that it's the line that generates the error?
>
>The object is recieved as a paramater into the method, I have stepped through and the object is definetely available, fuller code is
>
>
>WITH toObject
>  IF PEMSTATUS(m.toObject,"Width",5)
>   .ADDPROPERTY( '_nOriginalWidth', .WIDTH )       && This line errors
>  ENDIF
>ENDWITH
>
>
>Gary.

Try to use the full object reference here, sometimes there are strange unexplainable errors like this when using WITH/ENDWITH construct.

As I recall, I had the similar issue back then.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform