[Gambas-user] Non - Displaying Text

Rob sourceforge-raindog2 at ...94...
Wed May 4 20:04:34 CEST 2005

On Wednesday 04 May 2005 13:49, A Person wrote:
> I OPEN/READ a 1.4mb data file and randomly choose one line out of
> 26460 lines of text to print to a textlabel. Some text does not
> display. In particular, if a line has the less than '<' character
> then it and all the following text does not display.

The TextLabel control is an HTML control.  So, "<" means "start an 
HTML tag".  You can do this:

mystring = replace(mystring, "&", "&")
mystring = replace(mystring, "<", "<")

and you shouldn't have any more problems. (The first line is to ensure 
that ampersands don't get lost either.)


More information about the User mailing list