LoginSignup
0
1

More than 3 years have passed since last update.

配列とGetFilesについて

Posted at

UiPathで要素数xの配列を作成してSystem.IO.Directory.GetFilesを実施した場合
帰り値が宣言した要素数より多かった場合、自動で要素数が増える(動的)

実施手順

1.文字列配列「ArrayFile」を作成

変数名;ArrayFile
型;String
初期値:new string(1){“A”,“A”}

2.ArrayFile.Lengthの結果は2

3.AssignでArrayFileにsystem.IO.Directory.GetFiles(“C:\temp”)を代入する
※C:\tempには10個のExcelファイルしかない

4.ArrayFile.Lengthの結果は10

0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1