English&Japanese text:UiPathAcademyLv1Lesson3-1動画について

Japanese text. (English text is bottom)
UiPathAcademyLv1Lesson3-1「レッスン3-1 データ型の種類 」の動画について、質問です。

動画に従ってきましたが、エラーが出てしまいました。
「List」変数を下記のようにしていますが、規定値欄のエラー(青い「!」マーク)が消えません。
変数名→List
変数の型→System.Collections.Generic.List
規定値→new List(of List (of String)) from {“value1”,“value2”}

※動画の指示通りに設定しているつもりです。
「規定値」の欄のみエラー表示が出ています。

エラー文章は、下記の通りです。

「式 "new List(of List (of String)) from {“value1”,“value2”}"の処理中にコンパイルエラーが発生しました。
型"String"の値を"System.Collections.Generic.List (Of String)"に変換できませんでした。
型"String"の値を"System.Collections.Generic.List (Of String)"に変換できませんでした。」
(原文ママ)

2回連続で同じ文面(「型"String"の値を~変換できませんでした。」)が表示されます。
恐れ入りますが、どこが合っていないか、教えて頂けないでしょうか?

(下記に、拙いですが、英文も載せました。併せてよろしくお願い致します)

English text.
I ask about movie for Lesson3-1 of Level1.
I did same as movie but, I got one error for Default

Name→List
Type→System.Collections.Generic.List
Default→new List(of List (of String)) from {“value1”,“value2”}

Error messsage is like this;
-----error message from here-----
formula “new List(of List (of String)) from {“value1”,“value2”}” has compiler error
We can not convert Type “String” to “System.Collections.Generic.List (Of String)”
We can not convert Type “String” to “System.Collections.Generic.List (Of String)”
-----error message to here-----

I got same text (We can not ~ (Of String)") twice.

Please help me.
I can not understand why the error happened.

4/4木 10:20追記しました。
I wrote English text today April 4th.

1 Like

Welcome to our community.

But if you translate your messages to english, more people could assist you in your problems!

Kinda regards,
JR

Thank you for your reply and your advice.
So, I wrote English text.
I hope I will get the solution for my problem.

But, my mother tangue is not English and long time I did not use English.
So maybe I think my text is not perfect…

こんにちは

動画は見ておりませんが...

記載されている文では、Listの要素として「文字列型のList」を定義していますが、その値(value1 や value2)が「文字列」なため、型が違うと2回怒られます。

単純に「文字列」のListを定義したいだけなら

new List(of String) from {“value1”,“value2”}

で良いかと思います。
いかがでしょうか?

ありがとうございます。
無事解決できました。

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.