gorby
(gorby)
May 30, 2023, 6:35am
1
こんにちは。
指定フォルダのファイル一覧をリスト変数lis_Pathに取得後、リスト変数lis_Pathの値を1つずつDataRow変数dr_TransactionItemに取得したいです。
ElseIfアクティビティを2個並べてdr_TransactionItemを回すフローを制御したいが、下記の構文でどこか記述誤りはないでしょうか?リスト変数を扱いなれていないため、自信がありません。リスト変数に詳しい方、問題があればアドバイスをお願いします。
int_TransactionNumberの初期値は0になります。
ElseIfアクティビティ
条件 int_TransactionNumber < lis_Path.Count
Then dr_TransactionItem = lis_Path.Item(int_TransactionNumber)
ElseIfアクティビティ
条件 int_TransactionNumber = lis_Path.Count
Then dr_TransactionItem = Nothing’⇒この後、正常終了処理へ
Anil_G
(Anil Gorthi)
May 30, 2023, 8:18am
2
@gorby
If you are usinng reframework
Then transactionnumber starts from 1
So we need to use list_var(in_transactionnumber-1)
Cheers
gorby
(gorby)
May 30, 2023, 8:27am
3
Hi @Anil_G Thank you for your reply!
Since I did not use REframework as well as I intentionally set 0 as initial value of int_TransactionNumber, I assume
int_TransactionNumber starts from 0.
Are there any other inherent mistakes? Perfect?
Anil_G
(Anil Gorthi)
May 30, 2023, 8:30am
4
@gorby
Ideally one if condition should suffice
int_TransactionNumber < lis_Path.Count
On then side use list_path(in_transactionnumber) and on else use nothing
Extra checks are not needed
Cheers
gorby
(gorby)
May 30, 2023, 8:59am
5
Hi Thank you for your reply again!
According to your answer, is “.Item” in the following sentence erasable?
dr_TransactionItem = lis_Path.Item(int_TransactionNumber)
Anil_G
(Anil Gorthi)
May 30, 2023, 9:07am
6
@gorby
Yes list can be accessed directly as well as specified above
cheers
system
(system)
Closed
June 2, 2023, 9:07am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.