PC Review


Reply
Thread Tools Rate Thread

Displaying question

 
 
WLMPilot
Guest
Posts: n/a
 
      27th Jan 2008
If memory serves me right, I seem to remember a command in the BASIC language
that allowed for x number of spaces, say SPC(x). "X" would be caculated
taking the length of the longest line and adjusting it for each short line as
it was displayed. Something like this was used to help line up lines that
were displayed with each line being different in length.

Is there a function or command that can do this in VBA?

Thanks,
Les
 
Reply With Quote
 
 
 
 
James
Guest
Posts: n/a
 
      27th Jan 2008
Dim MyString
' Returns a string with 10 spaces.
MyString = Space(10)

' Insert 10 spaces between two strings.
MyString = "Hello" & Space(10) & "World"


"WLMPilot" <(E-Mail Removed)> wrote in message
news:1DA63FDB-FBEF-4600-B4AA-(E-Mail Removed)...
> If memory serves me right, I seem to remember a command in the BASIC
> language
> that allowed for x number of spaces, say SPC(x). "X" would be caculated
> taking the length of the longest line and adjusting it for each short line
> as
> it was displayed. Something like this was used to help line up lines that
> were displayed with each line being different in length.
>
> Is there a function or command that can do this in VBA?
>
> Thanks,
> Les


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on displaying Version krallabandi@gmail.com Microsoft C# .NET 1 8th Jun 2008 04:49 PM
Question: Gridview question (displaying data from a related "many" table) Cirene Microsoft ASP .NET 1 15th Nov 2007 05:08 AM
Displaying on a switchboard question =?Utf-8?B?ZGFuaWVsIGhlZmZuZXI=?= Microsoft Access Reports 3 2nd Apr 2007 10:04 PM
Displaying Contacts question =?Utf-8?B?eWVsbGVyZG9n?= Windows Vista Mail 7 28th Mar 2007 01:21 AM
My new question is not displaying I had to go to new comment =?Utf-8?B?SlRI?= Microsoft Access 2 5th Aug 2005 09:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:50 PM.