Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Statement Verification
Message
 
 
À
18/08/2003 03:48:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00820927
Message ID:
00820986
Vues:
16
The following code does the same as EXECSCRIPT but don't generate an error in case of errors during compilation of the code. However, it still may generate runtime errors.
lcTempName = ADDBS(SYS(2023)) + SYS(2015)
STRTOFILE(lcMycode, lcTempName + ".PRG")
COMPILE (lcTempName + ".PRG")
IF (lcTempName + ".ERR")
   * Error in the code
ELSE
   DO (lcTempName + ".FXP")
ENDIF
ERASE (lcTempName + ".*")
>Sorry, clearify my question :
>
>I build the commands in runtime, and use EXESCRIPT() to run the program. Just want to make the statements are correct. So I need a way to verify it before I running in runtime.
>
>TIA.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform