realbasic-nug
[Top] [All Lists]

Re: IDEScript: setting a Constant

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: IDEScript: setting a Constant
From: Norman Palardy <npalardy@great-white-software.com>
Date: Wed, 29 Apr 2009 17:35:44 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <9567201.240310.1241046377639.JavaMail.www@wwinf1g22>
References: <9567201.240310.1241046377639.JavaMail.www@wwinf1g22>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On 29-Apr-09, at 5:06 PM, emile.a.schwarz wrote:

Hi all,

The following code create a new Constant and set its value to Emile. The default constant name is "Untitled" and stay as is.

The third line (still below), is (apparently) ignored. I was hoping (wanted) it change the name of the Constant to kSchwarz.

DoCommand("NewConstant")
ConstantValue(Location) = "Emile"
PropertyValue(Location) = "kSchwarz"

Any idea on how I can do that ?

The "name" of an item like a constant etc is not a property (like it is on a class, window, interface, etc)
Hence why it's ignored

I don't think there is a way to script changing the name of a new constant like that


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>