Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: spaces formatting

$
0
0
Re: spaces formatting
FoxInCloud
Re: spaces formatting
Feb. 23, 2013
12:58 am
3Q1023GFMShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Tuvia Vinitsky
anywhere you need to workaround the standard HTML behavior: alltrim(<anything inside HTML tags>)


IOW in listboxes we have to put in the nbsp ourselves; is listboxes the only place where we have to do that?


you can use:
lcSpace = iif(wlWeb(), ' ', space(1))padr(alltrim(x),15, m.lcSpace) + Replicate(m.lcSpace, 5) + chr(124) + y + chr(124) + transform(z,"#####")

Sorry it took many several attempts to get the 'non breakable space' entity come out right

We populate a listbox with an array havin something like this:

padr(alltrim(x),15,' ') + space(5) + chr(124) + y + chr(124) + transform(z,"#####")

Although this appears fine in VFP, Fic is not converting the spaces into HTML spaces as it does for caption on labels, etc. Thus all the spaces are truncated and we lose the alignment.




-- thn (FoxInCloud)


Viewing all articles
Browse latest Browse all 10393

Trending Articles