Jump to content
Sign in to follow this  
john renfrew

a few questions about the new version

Recommended Posts

in the documentation it says

>>Use "..." after the parameter name, and that will be set as a List of Strings.

 

so if the variable is named thisVar...

 

If you return thisVar.class you get Java.util.ArrayList which means you can't run any of the methods on it meant for Strings, but you also can't run any methods for an array either, like thisVar[2] or thisVar.size()

 

If thisVar is

aa

bb

cc

 

If you then do thisVar + 'n' + 'newvalue'

the answer returned is i.e. with 2 added carriage returns not one

 

aa

bb

cc

 

 

newvalue

 

The main reason for wanting this to work properly is that .tokenize('n') as you know removes blank values, so I currently pass a single space and have my own closure to deal with this

 

john

Share this post


Link to post
Share on other sites

Got it figured I think. The documentation could do with being a bit clearer, in that it is not the the values inside the variable veto converted, but if you add multiple vars they get added to an array. The docs need to say this has to be the LAST variable in your list ( presumably as there is no other way to work out where to add extra values )

Share this post


Link to post
Share on other sites

John, I'm afraid I'm not sure what you're referring to. Could you let me know the specific piece of documentation you're quoting, and what exactly you're trying to do? I'm glad if you've got it figured out, but I would like to make our docs as clear as possible. Thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.