str = InputBox("入力文字列を入力してください"); if (str == "") { return; } for (y = 1; y <= Bottom; y++) { for (x = 1; x <= Right; x++) { if ([x,y] == "") { [x,y] = str; } } }