Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ Esc Interpreter, Esc Macros and templates » [BUG: fixed] Esc Input function doesn't actually return an array of elements.
[BUG: fixed] Esc Input function doesn't actually return an array of elements. [message #60866] Tue, 24 September 2024 07:48
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 227
Registered: June 2011
Experienced Member
From https://www.ultimatepp.org/app$ide$macros_en-us.html#2.1:

>Simple input dialog. Provides as many input text fields as is number of parameters specifying labels for these fields. If user chooses Cancel, returns void, otherwise returns single string if there is just one edit field or array of strings for multiple edit fields.

ex:
myText = Input("A","B");


only myText[0] will contain a value. myText[1] will be empty.

Fix:
File: Macro.cpp Line 375

Replace
out.MapSet(i, (WString)~editors[i]);

with:
out.ArrayAdd((WString)~editors[i]);


EDIT Submitted to github
2nd EDIT Fix merged into master, thanks Mirek!

[Updated on: Wed, 25 September 2024 17:44]

Report message to a moderator

 
Read Message
Previous Topic: Export active package as zip file (TheIDE macro)
Next Topic: is there any document about how C++ code interoperate with ESC scripting language?
Goto Forum:
  


Current Time: Wed Jun 04 18:14:43 CEST 2025

Total time taken to generate the page: 0.72312 seconds