Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public variable
Message
 
 
À
28/10/2002 13:39:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00716121
Message ID:
00716124
Vues:
18
The line of code you posted declares two publick variables: Long and Hkey_Classes_Root. VFP7 doesn't allow space character as a separator in the PUBLIC, LOCAL or PRIVATE declarations because of new AS clause. You can use only commas.
Public Long, Hkey_Classes_Root
* Or 
Public Hkey_Classes_Root AS Long
if you want to indicate the type of 'Hkey_Classes_Root' variable. However, VFP doesn't enforce the variable type. It's more like a comment in this case.

>Hello all! We are in the process of converting from VFP 5.0 to 7.0. When I compile our project in VFP 7.0 I get a syntax error in a line of code which is making constant definitions for registry access. The line follows:
>
>Public Long Hkey_Classes_Root
>
>I can't seem to figure out what has changed that I am getting this error....can anyone help me?
>
>TIA!
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform