LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
on openStack
put empty into field "News"
put URL "http://www.errolgray.com.au/News.txt" into field "News"
end openStack
I sent the stack to a friend and he said that after each word there appeared a box? He showed me a screenshot and there indeed is a little square box after each word.
Can someone shed light on what's happening and how I might get rid of the little boxes?
on openstack
put url "http://www.errolgray.com.au/News.txt" into myVar
if the platform is not "win32" then
replace crlf with cr in myVar
end if
put myVar into fld 1
end openstack
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
You create linefeed-delimited text in a field (the Rev carriage return is actualy a linefeed). You save the text in a text file and Revolution converts the line delimiters to crlf.
If you create a text file directly in Notepad on Windows, the line delimiters will be crlf too.
Now your friend reads the URL. Data from a URL is read as binary, not as text. Therefore, Revolution doesn't convert the crlf back to lf. The remaining carriage returns become visible as squares.
This might also depend on the font being used. Some fonts show a square, other fonts a very tiny space, and yet other fonts may show nothing at all.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode