Indigo Rose Software
  #1  
Old 10-29-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Constants & Numbers.

I had this in my screen, added via a text editor:


Code:
Screen.StartTimer(#IMPORTANTSCREENDELAY#);
The constant is defined as 3000

The screen timer works as expected.

however if I try to edit that same code in SUF, it complains about the constant...

Why would it complain, but work?
__________________
Reply With Quote
  #2  
Old 10-30-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Hey Josh,

I believe the issue you are encountering can be explained by the following note in the Constants section of the help file:

Quote:
Note: Design-time constants can be in any format you like. One recognizable format is the variable name in capitals surround by "#" characters. For example, #MYVAR#. However if you plan to use these design-time constants in action script, the names may be caught by the automatic syntax checker if certain characters are used that are part of the Lua language (such as "#"). In this case, it is best to use an alternate format such as _MYVAR.
If what you're experiencing is not what has been described there, please let us know.
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
  #3  
Old 10-30-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Thanks Daryl -- that's probably it -- I missed that note; and once reminded -- I recall that from previous suf versions as a work around -- indeed, in another project there's a comment "Can't use standard # syntax for numbers"... so I had a senior moment....
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I secure my installs with serial numbers? Adam Setup Factory 8.0 FAQ 0 04-28-2008 11:32 AM
bug when passing in constants through .ini file jlsf2 Setup Factory 7.0 Discussion 2 05-24-2007 09:48 AM
random numbers lnd AutoPlay Media Studio 6.0 3 05-17-2007 03:15 AM
Serial Numbers for your AutoPlay applications Desmond AutoPlay Media Studio 5.0 Examples 12 11-30-2005 02:20 PM
Find most used numbers - tips on easiest method please Derek AutoPlay Media Studio 5.0 9 01-07-2005 04:47 PM


All times are GMT -6. The time now is 02:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software