コミュニティエディションをインストールしました。
アカデミー受講中の質問です。
レッスン3-2で動画の通り
Status.Split(“:】”.ToCharArray)(1)とか入力していても
エラーが出ます行きできませいん。
出てくるのは下記内容
の割り当てアクティビティ代入で型System.Stringから型System.String []に割り当たることはできません
試しに(1)を外したらうまく動きました
エラーの解消法を教えてください
コミュニティエディションをインストールしました。
アカデミー受講中の質問です。
レッスン3-2で動画の通り
Status.Split(“:】”.ToCharArray)(1)とか入力していても
エラーが出ます行きできませいん。
出てくるのは下記内容
の割り当てアクティビティ代入で型System.Stringから型System.String []に割り当たることはできません
試しに(1)を外したらうまく動きました
エラーの解消法を教えてください
Here, output is string array but you are trying to store it in a string variable. Because of that you are getting that error.
First change the variable type from string to string array and then give a try.
回答ありがとうございます。
どこの変数の型を変更すればよいでしょうか?
そのレベルからわからなくて困ってます
使っている変数
①Status String型
②Number Array【String】型
If you want to store result of this Status.Split(“:】”.ToCharArray) then declare one variable of type string array and store it.
If you want to store result of this Status.Split(“:】”.ToCharArray)(1) then declare one variable of type string and store it.
変数名「Number」をString型に変更はしたのですが実行できませんでした
You have to change ‘Number’ variable to string array not string.
In Assign, string[] Number = Status.Split(“:】”.ToCharArray)