Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API Point Structures
Message
From
06/03/2006 14:41:49
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
API Point Structures
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01101805
Message ID:
01101805
Views:
49
I am attempting to convert a VB class for use in VFP. I am running into a problem with the API Point Structure. Can anyone help me with the equivalent VFP code for the following VB code?
** VB code chunk 1
PRIVATE TYPE pointapi
    x AS LONG
    y AS LONG
END TYPE

** VB code chunk 2
DIM tie(2) AS pointapi
tie(0).x = <<a screen 'x' value>>
tie(0).y = <<a screen 'y' value>>
tie(1).x = <<a screen 'x' value>>
tie(1).y = <<a screen 'y' value>>
The point structure is then passed to the following API call
Polyline hdc, tie(0), 2
I understand the API call, it is the first two chunks of code that have me totally buffaloed. Is there a VFP equivalent?

Thanks for you help.
Next
Reply
Map
View

Click here to load this message in the networking platform