>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.