Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters
Message
From
03/08/2006 19:22:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/08/2006 19:16:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01139173
Message ID:
01142874
Views:
8
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform