Robert
The following function can be found in db.gxh:
//--------------------------------------------------------------------------
-
// SymbLST_DB This method populates a LST object with all of the symbols
// of the specified type in the database. The handle of each
// symbol is placed in the Value part of the list.
//
// NOTE line symbols are automatically sorted in logical line order.
//
// Returns Nothing.
[geogx] void
SymbLST_DB( DB, // Database
LST, // List to Populate
int); // Symbol type (see DB_SYMB_ defines)
Use DB_SYMB_CHAN for the channels.
In GX source code you will often see the following:
List = GetList_DGW(Diag,_GXFORM_0);
SymbLST_DB(Data,List,DB_SYMB_CHAN);
Sort_LST(List,0,0);
The first line just gets the empty LST object from the GX dialog resource.
The second line populates that list with the channel names (the part you
want) and symbols.
The third line sorts the list is alphabetical order.
In your stand-alone program, you need to create and provide your own LST
object, instead of getting it from a GX dialog resource, so you might have:
List = Create_LST(STR_DB_SYMBOL);
SymbLST_DB(Data,List,DB_SYMB_CHAN);
Sort_LST(List,0,0);
Stephen Cheesman
Geosoft Inc.
-----Original Message-----
From: Ellis, Robert RG [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 5:50 PM
To: [EMAIL PROTECTED]
Subject: [gxnet]: Getting a list of channel names is standalone code
GXNET'ers,
Is there a way to get a list of channel names from a database in a
standalone program? The GetList_DGW function is an "App" type implying, I
believe, that it can only be called from a gx.
Thanks in advance for any help,
Cheers,
Rob
Robert G Ellis, Ph.D.
Principal Geophysicist
Minerals Discovery Group, BHP World Exploration Inc.
1111 West Georgia Street, Suite 1400
Vancouver, BC, Canada, V6E 4M3
Telephone: (direct) 604 632 1470 (reception) 604 632 1450 Fax: 604 683 4125
EMAIL: [EMAIL PROTECTED]
-----Original Message-----
From: Ian MacLeod [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 4:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [gxnet]: Unable to find GEOSOFT program
Andrew,
You need to add ...geosoft/gxdev/bin to your environment PATH. This is
explained in a dialog when GX Developer is installed, but it is easy to
miss.
Ian
-----Original Message-----
From: Boyd, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 5:37 PM
To: [EMAIL PROTECTED]
Subject: [gxnet]: Unable to find GEOSOFT program
Hi,
I am having trouble running gxc.exe and grc.exe. If I run either of the
programs I get a message
'Unable to find the GEOSOFT program gxc.exe'
I seem to have a correct install, the verify in software manager doesn't
complain that any files are missing.
Does anyone have a suggestion or seen the prob. before?
Thanks in advance,
Andrew
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
List Archive http://www.mail-archive.com/[email protected]
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
List Archive http://www.mail-archive.com/[email protected]
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
List Archive http://www.mail-archive.com/[email protected]
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
List Archive http://www.mail-archive.com/[email protected]