Code: Select all
X := "* TEST"
MsgBox TestFunc(X) ; report messy word
TestFunc(text)
{
out := ""
Loop Parse, text, "`n", "`r"
{
t:= A_LoopField
out .= f()
}
return out
f(){
return out .= "<>" t
}
}
Code: Select all
X := "* TEST"
MsgBox TestFunc(X) ; report messy word
TestFunc(text)
{
out := ""
Loop Parse, text, "`n", "`r"
{
t:= A_LoopField
out .= f()
}
return out
f(){
return out .= "<>" t
}
}
Code: Select all
MsgBox f() ; garbage
f() {
s := '15 chars + null'
g() {
s .= ''
}
MsgBox s ; '15 chars + null'
return s
}
Users browsing this forum: vikasgandhi and 21 guests