s-news
[Top] [All Lists]

Getting the contents of a script window

To: "'s-news@lists.biostat.wustl.edu'" <s-news@lists.biostat.wustl.edu>
Subject: Getting the contents of a script window
From: Albert Nigrin <Albert@Campbell.com>
Date: Tue, 19 Feb 2002 16:05:40 -0500
Does anyone know how to programmatically get at the contents of a script
window?
What I am trying to do is implement source control within SPlus.  I want to
create a 
toolbar button that compiles (runs) the text within a script window, and
then if the 
compile has no errors,  saves the contents of the script to disk.

I have tried using the built-in run command through the following statement
placed inside a function.
guiExecuteBuiltIn("$$Script$Run", wait = T)
Unfortunately, if the script window has any errors, it causes SPlus to
crash.

I am currently using SPlus 6.0, release 2, on Windows NT.
Thanks for any help.  I will summarize useful responses.

Albert


========================================================

The information transmitted in this email is intended for the named
addressee(s) only.  As this email may contain confidential and/or
privileged information, if you are not the intended recipient, you are
not authorized to retain, read, copy or disseminate this email or any
part of it.  If you received this email in error, please contact the
sender and permanently delete the email and any attachments.

Unless expressly stated, opinions in this email are those of the
individual sender and not of Campbell & Company, Inc.


<Prev in Thread] Current Thread [Next in Thread>
  • Getting the contents of a script window, Albert Nigrin <=