Solved

Easy, whats VB Constant for Space?

Posted on 2000-03-27
9
1,469 Views
Last Modified: 2012-05-04
Easy, whats the VBConstant or equivlent of a space?
Like vbCrLf is for Carriage return–linefeed combination.

Whats the one for a 's p a c e'?
0
Comment
Question by:fredmastro
  • 5
  • 4
9 Comments
 
LVL 4

Expert Comment

by:ruperts
ID: 2661005
char(32)

Have nice day!

0
 
LVL 4

Expert Comment

by:ruperts
ID: 2661011
ok...

chr(32)

I got carried away in the excitement!
0
 
LVL 2

Author Comment

by:fredmastro
ID: 2661013
ack I knew that, whats the vb string for that? So I can use the Replace command.

Replace(Text32,????," ")

I tried (Text32,char(32)," ") doesn't like it.
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 2

Author Comment

by:fredmastro
ID: 2661018
lol
0
 
LVL 2

Author Comment

by:fredmastro
ID: 2661022
Not sure if it's related but I get a :

Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'Replace'


error now.
That my code.

Text=Replace(News("News"),vbCrLf,"<BR>")

Text=Replace(News("News"),chr(32),"&nbsp;")
0
 
LVL 4

Accepted Solution

by:
ruperts earned 25 total points
ID: 2661023
ok...

chr(32)

I got carried away in the excitement!
0
 
LVL 2

Author Comment

by:fredmastro
ID: 2661024
maybe there's a trick to using two replace statments? Works fine one of them, I get error with two.
0
 
LVL 2

Author Comment

by:fredmastro
ID: 2661027
Ahh got it thanks

Text=Replace(News("News"),vbCrLf,"<BR>")
      
Text=Replace(Text,chr(32),"&nbsp;")
0
 
LVL 4

Expert Comment

by:ruperts
ID: 2661033
ok - a result at last..

(although have you checked that you can pass a NULL value to the replace function?)
.......................................
And finally you can use the asc(character) function to find out any character value but you probally knew that anyway!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question