Babu N
28th May 2014, 09:46
Can any one help me with the syntax to remove "tab space" from a text data and squeeze the text?

e.g

size = " [psize] = a" |The white spaces here are tab's and not blank spaces

what I need is:

size="[psize]=a"

The strip$(shiftl$()) just helps me to remove the blank spaces but not the tab spaces. I need a function like trim(). I am using Baan IV c3 - trim function is not working in Baan IV c3.

Regards
Babu Nagarajan

bhushanchanda
28th May 2014, 11:32
Hi,

Try using a for loop. Always do a search on the board to get the related threads:-

Thread! (http://www.baanboard.com/baanboard/showthread.php?t=25481)

sachinbaan
28th May 2014, 12:15
hi,

You can use,

function string trim$ (string str)

bhushanchanda
28th May 2014, 12:19
You cant remove blank spaces between strings/characters using trim$().

e.g. string = XX(space)YY(tab)ZZ

you can't trim$(string) to remove the spaces.

sachinbaan
29th May 2014, 07:53
hi,

You Can Use : string1 = str.replace$(string2, " ", "")