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:
00636814
Vues:
18
Armin,

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:
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
Let me know if this works for you!

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform