|
formatVal2String
>Anyone have a way for me to get the quotes written around the values as
>they are sent to the text field? Thanks
>
>Ian Crighton
Ian,
QUOTE does the trick.
I use the handler below when I build a string that later executes as valid
lingo via the DO function.
on formatVal2String dVal
-- save #symbol and #string syntax
set dTxt=""
set dIlk = ilk(dVal)
case dIlk of
#symbol:
set dTxt = "#" & string(dVal)
#string:
set dTxt = QUOTE & string(dVal) & QUOTE
otherwise
set dTxt = string(dVal)
end case
return dtxt
end
Best regards
Daniel Plaenitz
|