Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WHere do I create the object
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00116265
Message ID:
00116270
Views:
15
>Hello All,
>
>I've finally succeeded in creating my owm class (a text box for SSN numbers). I've also created another custom class that holds all the in-house functions that we have decided to bring over from the FPD.
>
>In this custom class, there are a number of "functions" and one is called chk_ssn (check the ssn number).
>
>In the valid of the txtssn there is code that reads
>
>returnvalue = oSSN.chk_ssn(THIS.value)
>
>The probelm is that oSSN I've created from the command window with a createobject command.
>
>The question!!
>
>Where do I put (either in the txtssn class or somewhere) else the the command for callling the object oSSN or where do I annotate it??
>
>Thanks

somewhere in your main app PRG:

set classlib to AppManager, Custom, whatever_other_class_libraries
* if you have an app manager class
oApp = CreateObject("AppMgr") && my own application manager
*
* somewhere else when you need to check the SSN
oSSN = createobject("SSNClassName")
returnvalue = oSSN.chk_ssn(THIS.value)
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform