Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Using ProperCase in ASP

Reply
Thread Tools

Using ProperCase in ASP

 
 
Mike
Guest
Posts: n/a
 
      07-11-2003
I'm having problem using strConv("john", 3) to generate a
propercase version of john.

does strConv not work in ASP???

Any advise is greatly appreciated.

Thanks,
Mike
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      07-11-2003
I guess you mean in VB Script, right? If so, no.

String functions that exist in VB but not VBS:

Fixed-length strings
LSet, RSet
Mid Statement
StrConv

See here though. http://www.aspfaq.com/show.asp?id=2299

Ray at work


"Mike" <> wrote in message
news:029501c347d1$ba544e10$...
> I'm having problem using strConv("john", 3) to generate a
> propercase version of john.
>
> does strConv not work in ASP???
>
> Any advise is greatly appreciated.
>
> Thanks,
> Mike



 
Reply With Quote
 
 
 
 
Chris Hohmann
Guest
Posts: n/a
 
      07-11-2003
"Aaron Bertrand - MVP" <> wrote in message
news:...
> > Mid Statement

>
> Not true! I use mid() in ASP all the time...
>
>

I think the operative word here is "statement". The Mid Statement in VB
actual modifies the input string. Sort of a positional replacer. No such
animal exists in VBScript. Ray's phrasing was somewhat misleading, but
to eer is human, ... Perhaps he should have said string "things" not in
VBScript.

-Chris

P.S. Yes, I purposely misplet err. Funny no?
P.S.S Yes misplet is misspelled. Now that's damn funny!


 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      07-11-2003
Mike wrote on 11 jul 2003 in microsoft.public.inetserver.asp.general:

> FName = UCASE(Left(FName,1)) & LCASE(RIGHT(FName, Len
> (FName)-1))



FName = Ucase(Left(FName,1)) & Lcase(Mid(FName,2))


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      07-11-2003
Tru dat. ;] I also use the Mid function all the time, but not the Mid
statement.

Ray at home

"Chris Hohmann" <hohmannATyahooDOTcom> wrote in message
news:%...
> "Aaron Bertrand - MVP" <> wrote in message
> news:...
> > > Mid Statement

> >
> > Not true! I use mid() in ASP all the time...
> >
> >

> I think the operative word here is "statement". The Mid Statement in VB
> actual modifies the input string. Sort of a positional replacer. No such
> animal exists in VBScript. Ray's phrasing was somewhat misleading, but
> to eer is human, ... Perhaps he should have said string "things" not in
> VBScript.
>
> -Chris
>
> P.S. Yes, I purposely misplet err. Funny no?
> P.S.S Yes misplet is misspelled. Now that's damn funny!
>
>



 
Reply With Quote
 
Marc
Guest
Posts: n/a
 
      07-12-2003
Function Capital(S)
ReDim c(Len(S))
i = 1
Do Until i = Len(S) + 1
c(i) = Mid(S, i, 1)
i = i + 1
Loop
c(1) = UCase(c(1))
j = 2
Do Until j = UBound(c) + 1
b = b & c(j)
j = j + 1
Loop
Capital = c(1) & b
End Function

Response.Write Capital("easy")



"Evertjan." <> wrote in message
news:Xns93B5D11FA4E61eejj99@194.109.133.29...
> Mike wrote on 11 jul 2003 in microsoft.public.inetserver.asp.general:
>
> > FName = UCASE(Left(FName,1)) & LCASE(RIGHT(FName, Len
> > (FName)-1))

>
>
> FName = Ucase(Left(FName,1)) & Lcase(Mid(FName,2))
>
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
send SMS using ASP.NET[1.1], C# using GSM modem connected senthil ASP .Net Mobile 0 10-12-2007 07:17 AM
Drop Downlist using ajax similar to google suggest using ASP ADvantage Javascript 1 05-12-2006 05:29 AM
How to transform xml variable to xsl file using asp.net using vb.net telescient telescient via .NET 247 ASP .Net 1 04-04-2005 02:50 PM
Something more than Propercase Colin Steadman ASP General 1 12-12-2003 11:43 AM
ProperCase class <see body> Kabal Java 5 09-05-2003 02:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57