Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any known issues with PARAMETERS()?
Message
De
29/06/2000 16:13:30
 
 
À
29/06/2000 15:16:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00386643
Message ID:
00386716
Vues:
16
At the risk of being branded completely useless, shouldn't it be:
define class upload as custom olepublic
     procedure openfile
     LPARAMETER cPathName
     if parameters() < 1 then
           return .f.
      else
           return "FOO"
      endif
enddef
>At the risk of boring the crap out of you, here is the complete code:
>
>DEFINE CLASS upload AS Custom OLEPUBLIC
>	PROCEDURE OpenFile(cPathName)
>		IF PARAMETERS() < 1
>		   This.LastErrorC="No file specified"
>		   RETURN .F.
>		ENDIF
>
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform