Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


parsing strings in vbs

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,536
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> parsing strings in vbs
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 parsing strings in vbs - 12/17/2001 4:21:36 PM   
  lesuk

 

Posts: 1
Score: 0
Joined: 12/17/2001
From: United Kingdom
Status: offline
Hi all first time here.....

Im in need of some support in writing a piece of VB Scrip for my website.

Im pulling data from a Access data base and want the data to be in the correct format, as in the capitals in the correct places etc, "House not house"

Ive got the first bit going ok in that the fields from tha data base with only one word entrys can be displayed like this one

<% myVar_location = (RS_member_detail_page.Fields.Item("location").Value)Response.Write(uCase(left(myvar_location,1))) & (right(myvar_location, Len(myvar_location)-1))
%>

Now being a newbie to VBS this took me a while to figure out..........So If one of the recordsets being pulled has a field in which there is a sentence or a few words

Can anyone advise me on how to count the words and number of charactures used.

Im not sure how to parse spaces? If there is a sentance is it just recognised as 1 string..

Many thanks in advance

Les.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> parsing strings in vbs Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts