Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY CATCH Logic
Message
 
 
À
17/04/2008 23:10:56
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01311613
Message ID:
01311750
Vues:
16
>I've read the help, but I must not be understanding it. The directory inside the TRY does not exist, so I thought that it would then go to the CATCH and run that code. It doesn't. It just goes to the ENDTRY.
>
>
>TRY
>	MessageFullFileName = ALLTRIM(THIS.HL7OutDirectory) + SUBSTR(SYS(2015),4,8) + ".HL7"
>	STRTOFILE(THIS.oSendData.strProcessData,MessageFullFileName,0)
>CATCH TO oException
>	MessageFullFileName = ALLTRIM(THIS.HL7BackupDirectory) + SUBSTR(SYS(2015),4,8) + ".HL7"
>	STRTOFILE(THIS.oSendData.strProcessData,MessageFullFileName,0)
>ENDTRY
>
I think, it will just try to create a file with the complex name. Interestingly, is \ allowed in the filename? I would think not.
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