remove trailing space

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
abate
Newbie
Posts: 3
Joined: Fri May 23, 2003 4:10 pm

remove trailing space

Post by abate » Wed May 28, 2003 9:08 am

how do i remove trailing spaces returned from a value I am getting from an excel cell using dderequest. Is there a special character other than space that I need to use to remove these trailing spaces. Because when I tried to use blank space to remove them Macro Schedule doesn't recognize them. In the debuger these trailing spaces are displayed as kind of square zeros.

Lumumba

Post by Lumumba » Wed May 28, 2003 3:26 pm

Could be that this is the equivalent to ASCII (10) --> LF aka "Line Feed"
:idea: if the variable is a digit divide it by 1

100/1 = 100

If it's a string cut it,

Code: Select all

Message>|%variable%|
Len>variable,varlength
Sub>varlength,1
MidStr>variable,1,%varlength%,variable
Message>|%variable%|

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts