Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Database Property for form level?
Message
De
12/07/2006 12:33:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
12/07/2006 02:08:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01135422
Message ID:
01135757
Vues:
23
You can avoid the macro substitution here:
>        for i = 1 to alen(arr_obj)
                 oCursor=getpem(oDataEnvironment, arr_obj(i))
>            j = oCursor.baseclass
>            if upper(alltrim(j)) = 'CURSOR'
>                db_name=upper(justfname(oCursor.database )))
>                oCursor.database=this.get_database(allt(db_name))
>                if !file(oCursor.database)
>                    messagebox('['oCursor.database+']'+chr(13)+;
>                        'Not found - Check Your blah..blah')
>                endif
>
That's Fabio's "GetPem returns object" trick, and I love it. I've found that it made my code cleaner and leaner in many places.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform