Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public variable
Message
 
 
To
28/10/2002 13:39:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00716121
Message ID:
00716124
Views:
17
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform