Hi Aaron,
Try
EData = Current_EDB();
LoadAllChans_EDB(EData);
Data=Lock_EDB(); // Instead of Data = Current_DB();
Commit_DB(Data);
UnLock_EDB(EData); // Return Access to the EDB Class
UnLoad_EDB(sDbin); //Close the edited database.
You need to decide if you want to have access to the EDB functions at
the beginnig of the GX or not, If not, You can used Data=Current_DB(),
However to make the most of the options you need to use
EData=Current_EDB() then Lock the Database using Data=Lock_EDB(EData)
for all calls to the DB class, if you need to get access to EDB class
functions the Lock needs to be removed then locked again.
Because you need to make a call to both EDB and DB functions you'll need
to have locked the EDB to Data to Commit the Dbase, then unlock it to
get access to the Unload_EDB function.
Hope that this makes sense
David
Aaron Balasch wrote:
> I have a series of databases and I need to apply a process to each of
> these databases. I've written a GX(similar to a batch file) to go
> through all the databases and perform the appropriate
> operations(interpolations, refidding, etc) on the appropropriate
> channels in the database. This was done through a series of calls to
> iRunGX_SYS(). I have used this GX and it works fine. My problem comes
> in when I thought I would add some code onto the end of the *.GXC file
> to load the newly created channels into the database. I've spent most
> of the morning working on this but haven't been able to get it to
> work. Here is the code that I thought would do the trick: EData =
>
>Current_EDB();LoadAllChans_EDB(EData);Data=Current_DB();Commit_DB(Data);UnLoad_EDB(sDbin);
> //Close the edited database.Does anyone have any ideas. 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]
--
************************************************************
*
* * David Triggs
Fugro Airborne Surveys
* 65 Brockway Rd
Floreat W.A. 6014
[EMAIL PROTECTED]
***********************************************************
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html