View Single Post
Old 27th March 2013, 08:36   #5  |  Link
fvisagie
Registered User
 
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
Quote:
Originally Posted by TheFluff View Post
You could just have put newlines in the returned string, you know.
I also thought so, but in this case I've found no way of writing the multi-line return string in a natural way that doesn't cause Eval() to fail. I've tried with literal "\n", variables by that value, triple quotes etc.

The only other syntax I found that works is
Code:
return("Kr=" + string(Kr) + Chr(10) + "Kg=" + string(Kg) + Chr(10) + "Kb=" + string(Kb))
# or Chr(13)
although that defeats the purpose even further, so to speak.
fvisagie is offline   Reply With Quote