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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting a variable length 1

Status
Not open for further replies.

thevillageinn

Technical User
Feb 28, 2002
124
US
I'm creating a text file, and need to set the length of a variable to 30 characters, no more no less, but since I am compiling my data from a mass of sources, and am not able to use the "transfer text" method, I can't specify a file layout.

I've tried to use Format$, but have been unable to get the place holders (@, #, &, " ") to work.

I am fairly sure this is simple, but I'm seriously stuck on this. Thanks in advance.
-Dan
 
Code:
Dim strVariable As String * 30
VBSlammer
redinvader3walking.gif

Unemployed in Houston, Texas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top