Print Page | Close Window

Adding spaces to text field.

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1271
Printed Date: 20 May 24 at 12:53PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Adding spaces to text field.
Posted By: zbrd
Subject: Adding spaces to text field.
Date Posted: 13 Nov 09 at 1:48PM
I know this should be simple, but I can't figure it out.
I'm using Delphi and QPDF 7.15.
 
I want to simply add spaces to a text string.  Everything I try simply gets ignored and the string is formatted with only 1 space.  Example:
'Hello World            ' + 'Nothing to say'
 
Shows up as:
Hello World Nothing to say
 
I have tried the Chr(20), concatenating spaces in fields and still just 1 space.
 
Any help would be appreciated.



Replies:
Posted By: JanN
Date Posted: 14 Nov 09 at 10:01PM
You could try the "other" space: Chr(160). Perhaps this works.


Posted By: zbrd
Date Posted: 14 Nov 09 at 10:55PM
Excellent, that worked great.  Thanks for the help!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk