Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class object cannot see private datasession?
Message
De
13/01/2000 17:54:20
 
 
À
13/01/2000 13:57:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00317802
Message ID:
00317976
Vues:
16
>Hi All,
>Myform has a private datasession with Mytable in it.
>Main.prg creates the oApp object which inherits the
>rptmgr object which has the rptexec method.
>
>Myform.RptBtn.click() has the following code:
> oApp.rptmgr.rptexec("Mytable")
>In oApp.rptmgr.rptexec() method, the line:
> select (ctablename)
>fails with "alias does not exist".
>ctablename = "Mytable" according to debug.
>
>If I change form's datasession to 1-default it works OK.
>
>Or, leaving datasession 2-private, and I put:
> use (ctablename)
>in place of the select(ctablename) it works OK.
>
>The report called from .rptexec() can see the environment since, in the report, table2.fieldname works in the report where
>table2 is also in the D/E.
>
>Why would the .rptexec() method not see the form's private datasession / data environment?
>TIA

See message #277896 for a little explanation of this.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform