General information
Category:
Coding, syntax & commands
Environment versions
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Virtual environment:
VMWare
Perhaps they are all being created with the default datasession. We give each class instance a name (this.name = "myclass:"), which makes finding the datasession in the SET dialog easier.
>Interesting...did not know that. I have a lot of functions in a .prg that are "lookup" functions (look up a name or company name etc) so they can be used in reports or queries etc. But usually these are looking up directly from the tables so maybe that's why I have never run into anything yet.
>
>Thanks,
>Albert
>
>>Hi Albert,
>>
>>when you access a class from a class, there's no issue. When you are in a class, then call a prg, and that accesses a different class, you can run into issues. Save the DSID and reset it in the prg. Because this is done so often, we created a prg set_dsid() that returns the DSID when called with no parameter, and when passed a parameter sets the DSID if that is not the current one.
>>
>>Hank
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only