Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataenvironment cursor paths
Message
De
25/10/2001 10:37:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/10/2001 10:14:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00573171
Message ID:
00573188
Vues:
26
>Is there a way to easily change the absolute Database and/or CursorSource path(s) to a relative path at runtime (say, in the form's LoadEvent method) without having to manually write a line of code for each cursor in the dataenvironment?
>
>Thanks!
>
>Adam Nettles
lcNewDbc = getfile('DBC')
WITH thisform.dataenvironment
  .closetables
  lnMembers=amembers(arrObj,thisform.dataenvironment,1)
  FOR ix=1 to lnMembers
    IF Upper(arrObj[ix,2])='OBJECT'
      WITH eval('.'+arrObj[ix,1])
        IF upper(.baseclass) = 'CURSOR' and atc('dbc',.Database)>0
          .database = lcNewDbc
        ENDIF
      ENDWITH
    ENDIF
  ENDFOR
  .opentables
ENDWITH
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform