Title: Message
Aaron:
 
The problem you are having is due to a series of bugs in the db.gxh header file. The following four functions should return type "int" but are currently returning type "void".
 
Try fixing the problem by editing your copy of db.gxh and subitituting in the correct types: e.g.:
 
//-------------------------------------------------------------------------
// iBlobsMax_DB   Gets Maximum Number of Blobs in the Database
//
// Returns        Maximum Number of Blobs in the Database
//
 
[geogx] int
iBlobsMax_DB( DB );            // Database Object
 
//-------------------------------------------------------------------------
// iLinesMax_DB   Gets Maximum number of lines in the database
//
// Returns        Maximum number of lines in the database
//
 
[geogx] int
iLinesMax_DB( DB );            // Database Object
 
//-------------------------------------------------------------------------
// iChansMax_DB   Gets Maximum Number of Channels in the Database
//
// Returns        Maximum Number of Channels in the Database
//
 
[geogx] int 
iChansMax_DB( DB );            // Database Object
 
//-------------------------------------------------------------------------
// iUsersMax_DB   Gets Maximum number of Users
//
// Returns        Maximum number of Users
//
 
[geogx] int
iUsersMax_DB( DB );            // Database Object
 
 
Hope this helps...
 
Stephen Cheesman

_______________
Geosoft Inc.
Stephen Cheesman
[EMAIL PROTECTED]
(905) 315-8207

Software and services for effective earth science decision-making. Free Oasis montaj interface with public-domain Data Access Protocol (DAP) for accessing high-volume spatial data over the Internet available for download at http://www.geosoft.com/pinfo/free/downloadfree.html

 

-----Original Message-----
From: skyhunter [mailto:[EMAIL PROTECTED]]
Sent: December 4, 2002 2:38 PM
To: GXNET
Subject: [gxnet]: iChansMax_DB()

I'm trying to read the number of channels in a database.
 
I declare iEchans as an int. iEchans is the variable I'm using to contain the number of channels.
I then execute,
 
iEchans = iChansMax_DB(Data1);
 
upon compling the *.gxc code, I get the error "the [=] operartion requires that both operands be of the same type.
 
I thought that maybe the documentaion was wrong so I declared iEchans as a real, but that didn't work.
I also have the same problem with iLinesMax_DB();
 
Can anyone see anything I'm doing wrong here?
 
 
Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
email: [EMAIL PROTECTED]
phone: 403-228-2175
fax: 403-244-7955

Reply via email to