Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2003 Server
>There are times it may exist, and it may not. Most locations in the app referencing the array only run code if it exists as an array. The problem is only during the build of the app or exe. It runs fine with the check for type() in the runtime. Using external array should work, but for some reason it bombs when building the app still. I don't want to dimension it because if it doesn't exist, then I don't want to run the code IF TYPE('alen(gaarray,1)')="N"
In old FPW times you could fool the PJM
if .f.
dimension gaArray[1]
endif
IF TYPE('alen(gaArray,1)') <> "N"
Précédent
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