목록 항목 기반의 동적 숫자 상자다음 스크립트에서는 3개의 요소 목록이 있으며 사용자가 각 요소에 대한 값을 입력할 수 있는 새 창을 만들려고 합니다.
myList = {"apple", "banana", "orange"};
nw = New Window( "Enter Numbers",
<<MODAL></MODAL>I use the for loop because the number of the items in the list "myList" changes. So that I would like to happen also for the Number Edit Boxes. However, I get back the following:
<SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georgios_Tsim_0-1724768252918.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="Georgios_Tsim_0-1724768252918.png" style="width: 177px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="Georgios_Tsim_0-1724768252918.png" style="width: 177px;"><span class="lia-inline-image-display-wrapper" image-alt="Georgios_Tsim_0-1724768252918.png" style="width: 177px;"><img src="https://us.v-cdn.net/6038925/uploads/images/67570iD9F0C812C0FDFAEA/Georgios_Tsim_0-1724768252918.png" role="button" title="Georgios_Tsim_0-1724768252918.png" alt="Georgios_Tsim_0-1724768252918.png" /></span></SPAN></SPAN></SPAN>
Ideally I would like the values that the end user enters to be saved in a list.
<LINGO-LABS id="lingo-labs-785852" slang="en-US" mode="CREATE"><LINGO-LABEL>자동화 및 스크립팅</LINGO-LABEL></LINGO-LABS>Re: 목록 항목 기반의 동적 숫자 상자내가 취할 접근 방식은 다음과 같습니다.
Names Default To Here( 1 );
myList = {"apple", "banana", "orange"};
myVList = V List Box(
Text Box( "Enter the values" ),
lub = Lineup Box( N Col( 2 ), ),
H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )
);
For Each( {box}, myList,
lub << append( Text Box( Eval( box ) ) );
lub << append( Number Edit Box( 42 ) );
);
nw = New Window( "Enter Numbers",
<<MODAL></MODAL>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1724769101857.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="txnelson_0-1724769101857.png" style="width: 152px;"><span class="lia-inline-image-display-wrapper" image-alt="txnelson_0-1724769101857.png" style="width: 152px;"><img src="https://us.v-cdn.net/6038925/uploads/images/67571i70B066AB4D35A5C0/txnelson_0-1724769101857.png" role="button" title="txnelson_0-1724769101857.png" alt="txnelson_0-1724769101857.png" /></span></SPAN></SPAN></P>
<P> </P>Re: 목록 항목 기반의 동적 숫자 상자이를 수행하는 방법에는 여러 가지가 있습니다.
다양한 방법을 사용하여 결과를 수집할 수 있으며 XPath를 사용할 수 있습니다.
Names Default To Here(1);
fruits = {"apple", "banana", "orange"};
value_collector = V List Box(
Text Box("Enter the values"),
lub = Lineup Box(N Col(2))
);
For Each({fruit}, fruits,
lub << append(Text Box(fruit));
lub << append(Number Edit Box(42));
);
nw = New Window("Enter Numbers", <<MODAL></MODAL>
<P>또는 목록에 대한 참조를 저장합니다.</P>
<P> </P>
<P> </P>
<CODE class=" language-jsl">Names Default To Here(1);
fruits = {"apple", "banana", "orange"};
value_collector = V List Box(
Text Box("Enter the values"),
lub = Lineup Box(N Col(2))
);
nebs = {};
For Each({fruit}, fruits,
lub << append(Text Box(fruit));
lub << append(neb = Number Edit Box(42));
Insert Into(nebs, neb);
);
nw = New Window("Enter Numbers", <<MODAL></MODAL>
<P>또는 연관 배열</P>
<P> </P>
<CODE class=" language-jsl">Names Default To Here(1);
fruits = {"apple", "banana", "orange"};
value_collector = V List Box(
Text Box("Enter the values"),
lub = Lineup Box(N Col(2))
);
vals = Associative Array();
For Each({fruit}, fruits,
lub << append(Text Box(fruit));
lub << append(neb = Number Edit Box(42));
vals[fruit] = neb;
);
nw = New Window("Enter Numbers", <<MODAL></MODAL>
<P>이것들을 사용하면 이와 같은 UI를 갖게 됩니다.</P>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1724770118276.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="jthi_1-1724770118276.png" style="width: 175px;"><img src="https://us.v-cdn.net/6038925/uploads/images/67574i33AD25CCD1BE26A1/jthi_1-1724770118276.png" role="button" title="jthi_1-1724770118276.png" alt="jthi_1-1724770118276.png" /></span></SPAN></P>
<P>또는 완전히 다른 디스플레이 상자 요소(테이블 상자 및 숫자 열 편집 상자)를 활용할 수도 있습니다.</P>
<CODE class=" language-jsl">Names Default To Here(1);
fruits = {"apple", "banana", "orange"};
nw = New Window("Enter Numbers", <<MODAL></MODAL>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1724770072443.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="jthi_0-1724770072443.png" style="width: 159px;"><img src="https://us.v-cdn.net/6038925/uploads/images/67573i6DD519A3AA61CFB2/jthi_0-1724770072443.png" role="button" title="jthi_0-1724770072443.png" alt="jthi_0-1724770072443.png" /></span></SPAN></P>
<P> </P>