Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameters
Message
De
03/08/2006 19:22:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
03/08/2006 19:16:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01139173
Message ID:
01142874
Vues:
7
>hi, about the paramenters
>it assumes that is numeric , but how about strings, how do i pass string parameters?

Exactly the same. Only the recommended naming system changes.

For a numeric:

Local variable: lnVar

Private variable: pnVar

Public variable: gnVar && You should almost never use public variables

Parameter: tnVar (or rnVar, according to some)

For a character:

Local variable: lcVar

Private variable: pcVar

Global variable: gcVar

Parameter: tcVar


For other types: The second character will be "d" for date, "t" for date-time, "l" for logical, "u" or "x" if the type is variable, "a" for an array.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform