Hi Bob

 

That is the ANSI character set – try 160 instead.

 

Regards

 

Clive Williams

CRW-logo_small

CRW Services

PO Box 12

Springwood  NSW  2777

 

Mobile: 0418 657 833

A H: (02) 4754 4151

Skype: crwservices

email: [email protected]

www.crwservices.com.au <http://www.crwservices.com.au/> 

 

Ostendo Consulting Partner

MYOB Certified Consultant

Intuit QuickBooks Online ProAdvisor 

Xero Certified Advisor

Registered BAS Agent

MYOB Accredited Trainer

Cert IV Workplace Training & Assessment

Cert IV Financial Services (Bookkeeping)

Ostendo® adds advanced inventory, job costing, manufacturing, service and 
distribution to your accounting system.

 

This e-mail message and accompanying data may contain information that is 
confidential and subject to legal professional privilege. If you are not the 
intended recipient you are notified that any use, dissemination, distribution 
or copying of this message or data is prohibited. All content is to be treated 
as confidential unless otherwise specified, and is not to be forwarded to third 
parties without the prior permission of the author. If you have received this 
e-mail message in error please delete it and notify the sender.

 

Although this message has been checked for viruses, it is the responsibility of 
the addressee to scan this message for viruses also.

Neither Clive Williams nor CRW Services warrant that the information herein is 
free from any virus, defect or error.

 

P PLEASE CONSIDER THE ENVIRONMENT BEFORE YOU PRINT THIS E-MAIL

 

From: [email protected] [mailto:[email protected]] On Behalf Of Bob Thompson
Sent: Wednesday, 25 March 2015 10:02
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Adding a space to the end of a variable

 

I tried the 255, but got the "y" character at the R> on my PC. 

 

Thanks,

 

Bob Thompson

LaPorte, IN

219-363-7441

 

Sent from my iPod


On Mar 24, 2015, at 5:52 PM, Doug Hamilton <[email protected]> wrote:

Bob, wasn't (CHAR(255)) a hard space?

R>
set echo on
set var vtext = ('ABCD')
set var vText = (.vText + (CHAR(32)) )
set v vlen inte = (SLEN(.vTEXT))
sho var vtext
ABCD
sho var vlen
          4
set var vtext = ('ABCD')
set var vText = (.vText + (CHAR(255)) )
set v vlen inte = (SLEN(.vTEXT))
sho var vtext
ABCDÿ
sho var vlen
          5
ret

Or maybe (CHAR(255)) was a smiley-Y, although it showed at the R>, pasted 
above, as a blank; email client probably made it the smiley-Y.
Doug



On 3/24/2015 4:43 PM, [email protected] wrote:

This seems like it should be an easy task, but for some reason it is eluding me.

 

I need to add a space to the end of a text variable, such as :

 

set var vText = (.vText + '  ')

or

set var vText = (.vText + (CHAR(32)) )

 

Neither of these add the space. 

 

It is probably staring me in the face and I just can't see it today!

 

Thanks,

Bob

 

Reply via email to