Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DE: set cInitialSelectedAlias to first DA class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00635373
Message ID:
00637211
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform