Aaron:
 
The description for the DoCommand_SYS() was just recently updated and improved.
Your problem is one of syntax.
 
Here is the new description (from v5.0.6, I believe)...
 
// Commands syntax:  "[type] command"
//
//    type     command
//    ----     -------
//    ID       Internal Menu Command 
//             See "Internal Menu Commands" in GX Developer documentation.
//    GX       gx file name
//    GS       gs file name
//    PDF      pdf file name
//    DOS      DOS style command
//    HLP      help file name
//
// The must be ONE space between the "]" and the command.  For example:
//
//    DoCommand_SYS("[ID] ID_EDIT_SELECT");  // bring up the line edit tool
//
 
You should use the following:
 
 DoCommand_SYS("[ID] ID_FILE_COMMIT");
 
Stephen Cheesman
Geosoft Inc.
-----Original Message-----
From: Aaron Balasch [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 9:47 AM
To: [EMAIL PROTECTED]
Subject: Fw: [gxnet]: DoCommand_SYS()

Steven,
 
I'm sorry to be bothering you with this. If other people don't have problem with this, I don't why I can't get this too work.
 
I'm still having trouble getting the DoCommand_SYS() function to work. Nothing seems to be happening. Below is a copy of my code for you too look over when you have time.
 
EDB EData;
 
#include <all.gxh>
 
{
   EData=Current_EDB();;
 
   DoCommand_SYS("*ID_FILE_COMMIT");
 
   Abort_SYS("EXIT");
}
 
The purpose of the Abort_SYS() command at the end is to confirm that the GX is actually terminating and not getting hung up on the DoCommand_SYS() function. With the Abort_SYS() function in, I've confirmed that the GX is terminating properly; I do get the "EXIT" message on the screen. I've also tried the GX without the Abort_SYS() command and get the same results(minus the "EXIT" message of course). In case I was using the *ID_FILE_COMMIT cammand wrong, I also tried replacing it with ID_VIEW_FONTS thinking I should get the same popup menu that you get when you choose Edit/Fonts. Result is the same as before, nothing appens.
 
I'm probably doing something silly, like overlooking the Current_EDB(); command which you fixed in your last email. If you could look over my code and see if you find anything wrong, I would greatly appreciate it.
 
 
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