Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable type
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00540840
Message ID:
00540876
Vues:
10
>I already tried like that. The problem is when the parameter is not an array, like a character type, then when it come to the command myarray[1] <> "U" it gave me an error, myarray.prg doest not exist.

If it's not an array, you should return .f. from your function. You can also display a message to the user, say,
=messagebox('Invalid parameter passed. Myarray should be an array',48,'Invalid parameter')
return .f.
endif
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