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:
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:
01378249
Vues:
12
Hi Viv,

By Enums (in this case), I'm basically talking about an object that contains objects much like an array but instead a collection of objects. I know I can iterate through a collection of objects contained within an object, but I don't know of a way to create the following in VFP:

Dim Templates(0 To 10) As Object

I don't believe VFP has any support for the above. I'm thinking maybe I could create an array and store the 10 object values (Templ Object in the sample code below). However, the Templ object displays as a varbinary value in the VFP debugger and I'm not sure if this approach will work.

Thanks,

James


>>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.
>
>Hi,
>From your code I don't see where Enums come into this?
>Looks like an array of ten objects plus a method to add items to the array......
James Moore
Owner/Developer
Ministry Tracking Software, Inc.
www.youthtrack.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform