Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A serial no. textbox needs 2 function calls, need to oop it
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
A serial no. textbox needs 2 function calls, need to oop it
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01194404
Message ID:
01194404
Views:
73
Hi all

I have a textbox that needs to display a serial no. (user modifiable, so they can skip nos. if they have to). This textbox has a GotFocus() method to call a application level function GetNextNo(), this will provide a next no. without a break. When the form is save, in it's Business Object container's (I use CodeBook framework) BeforeSaveValidations() I make another call to function BadNextNo(), this validates (multi-user) the no. being saved and returns a .T. or .F. This return value is then returned from BeforeSaveValidations(), thus stopping a save if required.

Now my question is I have 2 separate calls in 2 diff. classes, how can I make this textbox a class for nos. but for that I have to contain both calls in the class itself. How can I go about this? Is this possible?
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform