Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API Point Structures
Message
De
06/03/2006 14:41:49
Todd Cottengim
Alpine Land Information Services
Redding, Californie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
API Point Structures
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01101805
Message ID:
01101805
Vues:
50
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform