Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beforeopentables and returning .f.
Message
From
21/09/2004 15:58:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/09/2004 08:52:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00944089
Message ID:
00944708
Views:
14
>It's not really necessary right now, because in this case I know the name of the file, however, I was thinking that some generic code would be better than specifying the actual filename. I have employed Cathy's solution and it works, but I have to specify the filename literally. I would prefer to do something like step through all of the cursors in the DE and check for their existence and if they do not exist then do exactly as I am now using Cathy's code. I wanted generic code where I wouldn't have to know specifically what tables are in the DE to run it...

Haven't really tried that, but you could just subclass Cursor class (in a prg), and in de.beforeopentables just instantiate them one by one programmatically - and they'd have the responsibility to mind their own tables. Table names may be passed as parameters in the cursor.init, or in _assign method of the table name property... there are several possibilities here.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform