ユーザーにリストから「製品」を選択してもらい、各製品のグラフを作成し、チェックボックスが選択されているかどうかに基づいて「材料」をグラフのタイトルに追加するように求めるUIを構築しようとしています。
これまでのところ、UIウィンドウはありますが、グラフスクリプトに接続する方法がわかりません。 Ifステートメントのようなものが鍵になると思いますが、私は間違っているかもしれません。
Names Default To Here( 1 );
dt = Data Table( "untitled 16" );
values = dt:Product << Get Values;
array = Associative Array( values );
ProductList = array << Get Keys;
Final Products = {};
// Prompt for the input and create graph
FP = New Window( "Choose the Final Products",
<<MODAL> 0,
For( i = 1, i <= nt, i++,
If(
Final_Products[i] == 1,
// Call function for One step
Print( {1} ); // I tried "1" , but I'm missing something here. I am guessing I can insert the graph function here rather than print, but I was using print to check my work.
,
Final_Products[i] == 2,
// Call function for Two step
Print( 2 ); // I tried "2" , but I'm missing something here
);
);
);
FP << Close Window;</MODAL>2つのヘルププリントを追加します。
- 最初の場合の前に最終製品を印刷します。 Show(Final Products)で「印刷」することをお勧めします
- ループ内の場合、最初の前にFinal_Products [i]のforループ内に2番目の印刷を追加します
これらはあなたに何が間違っている可能性があるかについての良い考えを与えるかもしれません