Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enums in VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01378225
Message ID:
01378227
Views:
11
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.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform