Array

DuKe421

Member
(C attached file)
Trigger: no.
Actions: My macro asks for prompt, and after the prompts it will give message with index and prompt.

I want to automate the index instead of setting manually. Like i want to prompt 50 times and store it and show in pop up message but I can't manually set 50 times
 

Attachments

  • IMG_20220516_105803.jpg
    IMG_20220516_105803.jpg
    240 KB · Views: 7

Dm114

Well-known member
(C attached file)
Trigger: no.
Actions: My macro asks for prompt, and after the prompts it will give message with index and prompt.

I want to automate the index instead of setting manually. Like i want to prompt 50 times and store it and show in pop up message but I can't manually set 50 times
A: i=0
A: Do/While 50 times
A: i=+1
A: Set variable array(i)=(prompt user)
A: Loop
 

Dm114

Well-known member
Can you share macro i already tried this why but didn't work for me
You are right: it seems there's a bug when using User prompt option to set an array value. I'm use to use arrays but never with the User prompt option so I didn't notice this bug before.
In the attached image, you'll find a workaround.

Hope it'll help
 

Attachments

  • 20220516_125505.jpg
    20220516_125505.jpg
    269.1 KB · Views: 9
Top