Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DE: set cInitialSelectedAlias to first DA class
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00635373
Message ID:
00637211
Views:
18
Hi Kevin,

thanks for your reply!

>I tried to duplicate the problem you're experiencing by clearing the cInitialSelectedAlias property of a data environment and then instantiating the business object, but I couldn't get it to fail.
>At any rate, I've changed the code in CDataEnvironment.SetInitialSelectedAlias() as follows:

I've changed the code, but it didn't help. I've done some further investigation and found out, that the aCursors[] array is empty (only contains one line with .F.). I think I should have written that we are still using SQLPT. Probably this makes the difference (cursors are not opened on instantiation).

Can you think of anything else, I could do to make this work?

>
>ELSE
>   IF EMPTY(This.InitialSelectedAlias) AND ;
>      NOT EMPTY(taDataAccessObjects[1])
>      this.InitialSelectedAlias = this.aCursors[this.nInitialSelectedAlias]
>   ELSE
>      IF NOT EMPTY(taDataAccessObjects[1])
>         This.InitialSelectedAlias = SUBSTR(taDataAccessObjects[1],2)
>      ENDIF
>   ENDIF
>   This.cInitialSelectedAlias = this.InitialSelectedAlias
>ENDIF
>
Regards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform