Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Error 1 Message Parameter is wrong
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01055190
Message ID:
01055239
Vues:
18
>>
>>clear
>>ON ERROR ? MESSAGE(),ERROR()
>>? "Expected, the full name :"
>>ERROR 1,"C:\NOTEXISTS\MYTABLE"
>>?
>>? "Observed, VFP removes the path of the not found file name"
>>? " and two different parameters return the same parameter :"
>>SELECT * FROM C:\somepath\MYTABLE
>>
>>SELECT * FROM C:\anotherpath\MYTABLE
>>
>
>I'm not sure what you're saying here. With the following it seems to work correctly. Certainly, you would use the print command to output an error message in a real application.
ON ERROR DO ShowError WITH MESSAGE(), ERROR()
>ERROR 1, "C:\InvalidPath\InvalidFileName"
>ON ERROR
>
>PROCEDURE ShowError
>
>  LPARAMETERS tcMessage, tnError
>  ? tcMessage
>  ? tnError
>  RETURN
>ENDPROC
>
>* Prints:
>* File 'C:\InvalidPath\InvalidFileName' does not exist.
>* 1
the problem is in the SELECT FROM command
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform