Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-26-2019, 07:35 AM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,902
Default [SOLVED] FR: Null character separator GetUserInputs ReaScript function

Hi,


Currently, v5.965



Code:
retval, retvals_csv = reaper.GetUserInputs( title, num_inputs, captions_csv, retvals_csv )

will return all fields with comma separated values.


This work nicely with numbers (for eg, 15,10.1), but one of this field contains itself a comma (like for eg if one of your field is for keywords), it will mess everything.


The solution can be to escape the string right in the input fields with quotes, but user don't think of that (cause each input are an individual cells to his eyes).


If the separator was a way more uncommon string like a Null character \0 (just like in JS_ReaScript extension API functions), it would be way more easier to parse the return values, which could contains comma without causing issues with other fields.


Thanks !

Last edited by X-Raym; 05-29-2019 at 04:11 AM.
X-Raym is offline   Reply With Quote
 

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

Forum Jump


All times are GMT -7. The time now is 01:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.