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