Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How am I supposed to do this?
Message
From
12/11/1998 13:16:23
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
 
 
To
12/11/1998 12:29:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00156920
Message ID:
00157047
Views:
32
The second possibility is what I am looking for. In reality, I must deal with at least 6 types (classes) of customers. My present app in FoxDos2.5 has become almost impossible to work with because of the multiplicity of conditional iff's in reports etc. How far have you gotten in your efforts? Is your basic approach to create an instance for each class that may be used in the report and then do something like:
thisclass=iif(....) on the record break
and then in the detail line do something like (thisclass).figureamtdue???

I can see this as still being somewhat messy but definitely better than multiple conditional iffs hidden away in report fields and variables.

I anticipate having much method code for each of my customer classes. How much overhead is associated with having an instance of each class loaded in memory. Is it really the same as having several procedure files loaded? If the base class contains the code for all shared methods, is that code loaded into memory only 1 time or is it loaded for each instance?
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform