addin
Posted: Mon May 30, 2022 7:45 am
Hi,
I am writing an addin and would like to grab the input from users. Typically i loop through each input word like so:
------
string input=""
for %num 0 1 2 3 4 5 6 7 8 9 10
if %{%num}<>"" then
input=input+%{%num}+" "
endif
next
input=@ltrim(input)
input=@rtrim(input)
------
However, in this case, i would like to grab all the text within quotes. The number of words inside the quotes is unknown.
for example: fetch(d=db) "series1 data_type" "series2 data_type1 data_type2"
Is there a way to use the quotes as a delimiter in this case?
I am writing an addin and would like to grab the input from users. Typically i loop through each input word like so:
------
string input=""
for %num 0 1 2 3 4 5 6 7 8 9 10
if %{%num}<>"" then
input=input+%{%num}+" "
endif
next
input=@ltrim(input)
input=@rtrim(input)
------
However, in this case, i would like to grab all the text within quotes. The number of words inside the quotes is unknown.
for example: fetch(d=db) "series1 data_type" "series2 data_type1 data_type2"
Is there a way to use the quotes as a delimiter in this case?