Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enums in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Enums in VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01378225
Message ID:
01378225
Vues:
82
Hello,

I'm trying to figure out how to convert some VB code for an ActiveX control to VFP code. What has me stumped at this point is the sample code the ActiveX control company provided shows the following:

-------------------------

Dim Templates(0 To 10) As Object

Private Sub DPFPEnrollmentControl1_OnEnroll(ByVal Mask As Long, ByVal Templ As Object, ByVal Stat As Object)
SetTemplate Mask, Templ
End Sub

Public Sub SetTemplate(ByVal Mask As Long, ByVal Templ As Object)
' Store fingerprint template in the memory.
Set Templates(Mask) = Templ
End Sub

-------------------------

The problem is how do I create an Enum object like the Templates(0 To 10) Object creation above? I'm not sure how to make this work in VFP since the Templ parameter is an object being stored into the Templates Enum object. How would I achieve this same process in VFP?

Thank you to anyone who can lend a hand or has any ideas regarding how I can accomplish the above in VFP.
James Moore
Owner/Developer
Ministry Tracking Software, Inc.
www.youthtrack.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform