Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which type of class to use?
Message
From
04/01/2005 22:04:07
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973101
Message ID:
00974269
Views:
23
Well, what we are finding is that if you need to pass large amounts of data between objects then it's likely you can combine those into the one class - ie the class design is a little suspect.
You can also run forms from a session class and that form will see the session's data.

We find XML fast for anything but huge data sets, but like you I find that annoying in a data language that should allow you to deal with cursors.

For example if I have a stock control module and an address module I should be able to return a cursor of addresses for my stock locations for use in the stock module. (purely hypothetical here!) We don't have a solution to that sort of problem other than XML. Which is why I'd simply love a
select ... into cursor ... datasessionid x
type syntax. But I don't think we'll ever see it, even though I repeatedly here developers wanting to do things that would be facilitated by something like this.




>
>I currently use business objects that use the default datasession. The reason is that I often have objects ask other objects for datasets and it seems like a lot of (slow) mucking around to pass data between the objects.
>
>For example - if I have a form that handles a shift for a department and needs a cursor with emplyees and a cursor with the shift record etc. - I would get the list of employees from my employee business object and my shift record from my shift business object.
>
>Are you saying that you would get everything from the one object ? If not, how do you handle this sort of scenario ?
Previous
Reply
Map
View

Click here to load this message in the networking platform