Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declare a cursor?
Message
De
23/12/1999 15:25:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00308067
Message ID:
00308187
Vues:
42
>Ed,
>
>>>>>can you start a cursor name w/ a numeric value?
>>>>
>>>>Nope, or form properties/methods and object names, or field names.
>>>
>>>It's a FP limitation. You MUST start from letter. Try this:
>>>
>>
>>or an _
>
>You can use _, but it's mostly for system variables, like _mline or _tally.

Huh? Where did it ever say that in any of the VFP docs? It may be a naming standards decision for your development group, but it's always been an acceptable prefix for fields as long as name collisions don't occur. Using reserved names is just as (or more) dangerous in situations where the parser can get confused...

From VFP6's help file:

Creating Visual FoxPro Names

Data containers and some parameters to commands and functions require a name. When you create a name in Visual FoxPro, apply the following rules:

Use only letters, underscores, and numbers.

Begin the name with a letter or underscore.

Use 1 to 128 characters, except for field names in free tables and index tags — those can be 10 characters at most.

Avoid words reserved by Visual FoxPro.
File names follow your operating system's conventions.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform