Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I print a character

Status
Not open for further replies.

mrfritz44

MIS
Nov 21, 2003
75
US
Is there a function to print a specified number of charaters? For example, I need append spaces to a field based on the length of that field. I suppose it would go something like this:

PrintSpecifiedCharacterFunction((10-Len(Field))," ")

In my example, I would want to fill my dynamically lengthed field with up to 10 spaces. My end result would always be a field length of 10, regardless of actual data or a series of 10 spaces.

There must be a function to do this.

Thanks,

Fred
 
Have a look at the Space and the String functions.


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Space() did the trick......actually

Space(10-nz(Len(Field)))

did the trick. I love null values!

Thanks for the tip.

Fred
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top