Aaron:
 
Many of these commands work on the current map or database. If you don't have one loaded (as seems to be the case below) nothing will happen. Try adding the this line above the command:
 
EDB EData;    // declaration
 
// --- get the current database ---
 
EData = Current_EDB();
 
 
 
Stephen Cheesman
Geosoft Inc.
-----Original Message-----
From: Aaron Balasch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 5:44 PM
To: [EMAIL PROTECTED]
Subject: [gxnet]: DoCommand_SYS()

Hi everyone,
 
I'm trying to execute a Geosoft internal command, such as *ID_FILE_COMMIT or *ID_VIEW_FONTS. I was told that the DoCommand_SYS() funtion should accomplish this. I can't get this to work. I've written a simple test gx:
 
 
#include <all.gxh>
 
{
   DoCommand_SYS("*ID_FILE_COMMIT");
}
 
and nothing happens, even though I have previuosly opened a database. I also tried *ID_VIEW_FONTS which does not require a database and nothing happens. I can get the internal commands to work in my own custom menu files but I can't get the DoCommand_SYS() function to do anything. Can anyone offer any help?
 
 
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]

Reply via email to