Using ProperCase in ASP

M

Mike

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
 
C

Chris Hohmann

Aaron Bertrand - MVP said:
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!
 
E

Evertjan.

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))
 
R

Ray at

Tru dat. ;] I also use the Mid function all the time, but not the Mid
statement.

Ray at home
 
M

Marc

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")

;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top