Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-04-2005, 03:10 PM
Kerfufl Kerfufl is online now
Registered User
 
Join Date: 02-12-2004
Location: Ottawa, Ontario, Canada
Posts: 12
Inserting New Line in Parameter to subroutine

I'm trying to insert a new line in a parameter i'm passing to a subroutine. The subroutine calls Copy Files with this parameter and i'd like to have a list of files to be copied (each file will need to be seperated by a newline).

Is it possible?

I found the post below that seems like it was saying i could but when i hit ctrl-enter in the parameter edit box the dialog is dismissed.

http://www.kinook.com/Forum/showthre...hlight=newline
Reply With Quote
  #2  
Old 04-05-2005, 06:16 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,703
That trick only works for multi-line edit controls. Some ways to do this:

1) Use a Set Macro action to assign the macro value instead of as a parameter of the Subroutine Call step.

2) Store the multi-line value in a project macro, and reference that macro from the parameter value field of the Subroutine Call step.

3) Use script code in the parameter value to insert newlines. If VBScript is your default script language:
first line[vbCrLf]second line...
Reply With Quote
  #3  
Old 04-05-2005, 07:52 AM
Kerfufl Kerfufl is online now
Registered User
 
Join Date: 02-12-2004
Location: Ottawa, Ontario, Canada
Posts: 12
Perfect! Suggestion #3 worked flawlessly. I suspected it'd be possible just wasn't sure how to do it. Thanks for the quick reply.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off



All times are GMT -5. The time now is 07:16 AM.


Copyright 1999-2019 Kinook Software, Inc.