sdim a,16
a="aiueo123"
s=""
repeat strlen(a)
s+=strf("%X ",peek (a,cnt))
loop
mes s
stop
wai
2008/5/25(Sun) 09:07:59|NO.16095
解決しました!
ありがとうございます。
StarratS
2008/5/25(Sun) 11:25:19|NO.16098
t = "Chinese Premier Wen Jiabao says the number of deaths from the massive earthquake in Sichuan Province has topped 60,000."
w = " ","\n"
s = ""
repeat
if peek(t,cnt)=0: break
s += strf("%X",peek(t,cnt))+w(cnt\16=$F)
loop
mes s
長い文字列を処理する際に文字列長を数えるということはそれだけで時間がかかって無駄。
StarratS
2008/5/25(Sun) 11:28:39|NO.16099
こっちでもいいや。
t = "Chinese Premier Wen Jiabao says the number of deaths from the massive earthquake in Sichuan Province has topped 60,000."
w = " \n"
s = ""
repeat
if peek(t,cnt)=0: break
s += strf("%X",peek(t,cnt))+strf("%c",peek(w,cnt\16))
loop
mes s