Solved

Easy, whats VB Constant for Space?

Posted on 2000-03-27
9
1,455 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
Comment Utility
char(32)

Have nice day!

0
 
LVL 4

Expert Comment

by:ruperts
Comment Utility
ok...

chr(32)

I got carried away in the excitement!
0
 
LVL 2

Author Comment

by:fredmastro
Comment Utility
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
 
LVL 2

Author Comment

by:fredmastro
Comment Utility
lol
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 2

Author Comment

by:fredmastro
Comment Utility
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
Comment Utility
ok...

chr(32)

I got carried away in the excitement!
0
 
LVL 2

Author Comment

by:fredmastro
Comment Utility
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
Comment Utility
Ahh got it thanks

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

Expert Comment

by:ruperts
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now