Indigo Rose Software
  #1  
Old 05-23-2005
GMan's Avatar
GMan GMan is offline
Forum Member
 
Join Date: May 2005
Posts: 3
Huh? Multiple lines

Is there any possiblity in the lua language to continue with the current statement into a new line (like _ in vba"

For example instead of

sTemp = "Hello this will be a newline\nThis is the secondline";

to have something like

sTemp = "Hello this will be a newline\n" _
"This is the secondline";

Thanks.
  #2  
Old 05-24-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
sTemp = [[Hello this will be a newline
This is the secondline]];
  #3  
Old 05-27-2005
GMan's Avatar
GMan GMan is offline
Forum Member
 
Join Date: May 2005
Posts: 3
Thank you very much.

Can the same format be used for breaking up apart a programming line like:

a = 12 + SessionVar.Expand( "%myvar%") + g_expect;

to

a = [[ 12
+ SessionVar.Expand( "%myvar%")
+ g_exptect ]]

?
  #4  
Old 05-27-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
No need:

a = 12
+ SessionVar.Expand( "%myvar%")
+ g_exptect;

Should work fine.
  #5  
Old 05-27-2005
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
It's definitely valid in lua...whitespace is ignored within statements, just like in c++.

However, the action editor may not be so savvy...the syntax highlighting and autocomplete might have a bit of trouble interpreting the statements that way. It should still work fine, though, so don't let the "look" of the code in the editor fool you into thinking it's wrong.
__________________
--[[ Indigo Rose Software Developer ]]
  #6  
Old 05-31-2005
GMan's Avatar
GMan GMan is offline
Forum Member
 
Join Date: May 2005
Posts: 3
Thanks a lot guys
 

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
open email using multiple body lines chad Setup Factory 7.0 Discussion 16 01-11-2005 09:23 AM
Multiple lines in tooltips markstaylor AutoPlay Media Studio 5.0 7 12-05-2004 12:41 PM
Playing Multiple Video Files in Sequence Desmond AutoPlay Media Studio 5.0 Examples 0 09-26-2003 12:10 PM
HOWTO: Make an Install that Spans Multiple CD-ROMs Support Setup Factory 6.0 Knowledge Base 0 10-11-2002 04:36 PM
Default text in edit field - Multiple edit screen Romahe Setup Factory 6.0 1 12-18-2001 02:01 PM


All times are GMT -6. The time now is 04:39 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