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

Thread Tools Display Modes
Old 01-26-2019, 07:35 AM   #1
Human being with feelings
X-Raym's Avatar
Join Date: Apr 2013
Location: France
Posts: 5,504
Default FR: Null character separator GetUserInputs ReaScript function


Currently, v5.965

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 !
X-Raym is offline   Reply With Quote
Old 01-27-2019, 03:14 PM   #2
Human being with feelings
mespotine's Avatar
Join Date: May 2017
Location: Leipzig, Germany
Posts: 832

We need such thing for Ultraschall.fm,where we ask the user for mp3-metadata(cover, title, album,etc) and have to force the users to not input commas,which is bad UX for our users and cause of bugreports.
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 01-27-2019, 05:01 PM   #3
Human being with feelings
Lokasenna's Avatar
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 5,656

Obviously it would limit your UI choices, but my GUI has a replacement GetUserInputs dialog that returns an array.

+1 to the FR though, it's been requested a few times in a few different forms.
Lokasenna is online now   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 09:16 AM.

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