Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Database Property for form level?
Message
From
12/07/2006 12:33:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
12/07/2006 02:08:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01135422
Message ID:
01135757
Views:
22
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform