Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP equivalent of VB
Message
From
06/03/2006 12:54:01
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
06/03/2006 12:34:34
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01101755
Message ID:
01101760
Views:
10
Hi Todd,

>Somewhere I saw the VFP equivalent of the following VB code, but can not find it now.
>Private TYPE xxx
>  x1 AS LONG
>  x2 AS LONG
>  y1 AS LONG
>  y2 AS LONG
>END TYPE
>I think it was a webpage somewhere. Anyone have an idea for me?
>Thank you.

Try it:
Define Class myType as Custom
   x1 = 0
   x2 = 0
   y1 = 0
   y2 = 0
EndDefine
But, it's a class 8-D . But you can to do:
   loMyType = CreateObjet("myType")
   loMyType.x1 = 10.5
Good luck!
Erick
Força Sempre!
Strength Always!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform