Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chaning A Table's Location
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
00770981
Message ID:
00771032
Vues:
9
>Can someone help me figure out to change the full path & name
>of a fox2x table in runtime. I have this code, but I get a LOGON
>FAILED error:
>
>
>FUNCTION ChangeTableLoc
>LPARAMETERS oTable, cNewTableLoc
>
>oTable.SetTableLocation(cNewTableLoc)
>
>RETURN
>
>

Here's some sample code from the class I use:
* oRPT - object reference to currently open report

? oRPT.Database.Tables(1).SetTableLocation("c:\zzz.dbf","c:\zzz.dbf", "")
You would need to change the path for each table used in your report. In the above example, I'm assuming their is only one. You can get the total # of tables using code like:
* toReport - object reference to currently open report

lnTableCount = toReport.Database.Tables.Count
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform