Information générale
Catégorie:
Produits tierce partie
If you are looking for simple results, you may want to set a DOS variable in your autoexec.bat file, then, instead of calling the DOS program directly, you can call it via a .bat file and set the DOS variable = DOS error level. Then back in FoxPro, you can use GETENV() function. I'm not positive, but I believe Foxpro DOS does have this function.
Ex: In autoexec.bat, just to establish DOS variable
(if not created at AUTOEXEC, or anytime before the Foxpro session starts,
it won't see the variable created through the RUN command)
DOS2FoxError = 0
Ex: Batch file to call DOS program and store error
DOS2FoxError = ErrorLevel
Then in Foxpro,
lnDOSError = GetEnv( "DOS2FoxError" )
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement