Trim$ and Lset$ problem

Blitz3D Forums/Blitz3D Beginners Area/Trim$ and Lset$ problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

A$="ABCD"
aa=Len(A$)
Text 10,10,aa
LSet$(A$,19)
bb=Len(A$)
Text 10,30,bb
Trim$(A$)
cc=Len(A$)
Text 10,50,cc

Can someone please explain why I get the answers:
aa=4
bb=4
cc=4

instead of:
aa=4
bb=19
cc=4

Many thanks.