|
Hi David,
Thank you very much for your suggestion although I
still can't close the database from the GX(without the prompt to save) and then
re-open the database manually with the new displayed channels. I do have a
question about the sample cose you included in your message; why do you use the
Commit_DB() command before you use the LoadAllChans_EDB() command? I went
through the Alphebetical list of GX's in Oasis Help and think I've found a
GX that would do exactly what I want but unfortanately it doesn't exit; the GX
is SAVEDBVU.GX and it's corresponding LOADDBVU.GX. Do you have any idea of how
such a thing would be done? I must be doing something wrong with the database
locks. I can't even seem to get UnLoadVerify_EDB() with a FALSE prompt to save
to save the database(where the documentation says a FALSE prompt should still
save the database). Here is the pertinent section of code that I'm using. If you
or anyone else can see something wrong, I would greatly appreciate the
help.
EData1=Current_EDB();
LoadAllChans_EDB(EData1);
Data1 = Current_DB();
Commit_DB(Data1);
UnLock_EDB(EData1);
UnLoadVerify_EDB("c:\\gdata\\gosl2\\gdbase\\gosl0012.gdb",
EDB_UNLOAD_NO_PROMPT); //Close the edited
database.
Abort_SYS("EXIT");
For testing purposes, I explicitly named the
database in the UnLoadVerify_EDB() command and the Abort_SYS("EXIT") command is
for testing purposes and is to terminate the GX after the pertinent section of
the GX executes.
Aaron Balasch
Sky Hunter Technologies Inc. Suite 101, 1725 10th Avenue S.W. Calgary, Alberta T3C 0K1 Phone: (403)228-2175 Fax: (403)244-7955 email: [EMAIL PROTECTED] |
