Kitty
October 17, 2019, 12:51am
1
すみません、UiPath Studioで string.split(" " ")を入力したいですが入力すると(“¥” “)に
日本語のOSを使って英語のキーボードを変換しても バックスラッシュ が打てませんです。
Notepadで(”")を書いてコピーペーストにしても(“¥”)に変換します。
どうすればいいでしょうか?
助けてください。
Hi I am trying to input the following string.split(" " “) into the assign activity.
When I input (” " ") it will change to (“¥” ") causing error to the program.
I’m using Japanese OS system with installed English Keyboard.
Even though I change to English Keyboard I still not not input backslash into the command.
What should I do?
Please help
Kitty
October 17, 2019, 12:56am
2
日本語キーボードを \ を書くと ¥ マークに変換します。
英語キーボードを \ をクリックしたらなにも出力できません。
When I use Japanese keyboard to enter \ it will change to ¥ mark.
When I use English keyboard to enter \ nothing happens.
cheez_RPA
(いわさき りょうすけ (UiPath Japan MVP 2019 - 2021))
October 17, 2019, 1:24am
3
ダブルクォートで分割したい、というのが要件であっていますか?
それであればstr.split(""""c)
でよいかと思います。文字列を表すダブルクォートのなかで、ダブルクォートを2つつなげると、その部分が「文字列としてダブルクォート1つ」に読み替えられます。
1 Like
Kitty
October 17, 2019, 1:31am
5
申し訳ございません、書く文章に 「 \ 」を書きませんでした実際に書きたかった文章は以下です。
すみません、UiPath Studioで string.split(" " “)を入力したいですが入力すると(“ ¥” “)に
日本語のOSを使って英語のキーボードを変換しても バックスラッシュ が打てませんです。
Notepadで(” " ”)を書いてコピーペーストにしても(“ ¥" ”)に変換します。
どうすればいいでしょうか?
助けてください。
Hi I am trying to input the following string.split(" " “) into the assign activity.
When I input (” " ") it will change to (“ ¥” ") causing error to the program.
I’m using Japanese OS system with installed English Keyboard.
Even though I change to English Keyboard I still not not input backslash into the command.
What should I do?
Please help
Kitty
October 17, 2019, 1:33am
6
ありがとうございます。
str.split(“”""c)が認識できるかどうか、いまからしらべます。少々お待ちください。
Yoichi
(Yoichi)
October 17, 2019, 2:08am
7
こんにちは
WindowsOSでは半角のバックスラッシュと半角円マークは同じ文字(文字コード0x5C)の扱いで、フォントによる表現が異なるだけです。(内部的には厳密には異なりますが)
そのため、半角バックスラッシュを打ちたいときでも、表示上は半角円マークのままで問題ないかと思います。
1 Like
Kitty
October 17, 2019, 2:18am
8
cheez_RPA さんと Yoichiさん
ありがとうございます。おっしゃる通りです。
すみません、タイトルとは別の質問ですが聞いてもよろしいでしょうか?
splitした結果をの第2分けた文字列が欲しいですがないの場合がありますどうすればいいですか?
result = string.split(“”""c)
result2 = result(1)
説明不足ですが例えばsplitした結果はresult(0)にしかないです。
result(1)は nullです
If activity を使いたいですが condition はなにを書きましょうか?
cheez_RPA
(いわさき りょうすけ (UiPath Japan MVP 2019 - 2021))
October 17, 2019, 2:28am
9
Line_Scrap(1) Is Nothing
をおためしください。
Kitty
October 17, 2019, 2:31am
10
試しました、エラーです。
エラーメッセージは以下になります。
If: Index was outside the bounds of the array.
cheez_RPA
(いわさき りょうすけ (UiPath Japan MVP 2019 - 2021))
October 17, 2019, 2:33am
11
Nothingになるのであれば、まずは配列の要素数(Line_Scrap.Count
)で分岐させるのもテですね。
1 Like
Kitty
October 17, 2019, 2:51am
12
ConditionのところにLine_Scrap.Countを使えば解決できました。
ありがとうございます。
system
(system)
Closed
October 20, 2019, 2:51am
13
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.