今回、読み込んだテキストの行数によって、表示する文章を変更する
プログラムを組んでみたのですが・・・。
notesel a dialog "txt", 16, "テキストファイル" if stat = 0 { stop } noteload refstr noteinfo(0) ti = int(notemax) if ti=1 { mes "1行です。 非常に短いテキストです。" } if ti=2 { mes "2行です。 短いテキストです。" } if ti=3 { mes "3行です。 普通のテキストです。" } if ti=4 { mes "4行です。 短いテキストです。" } if ti=5 { mes "5行です。 非常に長いテキストです。" }
いつものようにエラーになってしまいました。
どうしたら解消できるでしょうか?