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:
01378248
Vues:
19
Hi Craig,

Thank you for your response. So you mean I will need to store the Templ value as an actual value? When I run this in the debugger, Templ evaluates to a varbinary type. How would I store something like that in a VFP table or SQL Server table? In a memo or blob field?

I haven't worked with this type of value type before so I'm not sure what to do with the Templ Object (which evaluates to a varbinary in the debug window).

Any help you can spare would be much appreciated.

Thanks,

James



>VFP doesn't support Enums. You'll have to pass the actual value that the enum equates to.
>
>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform