Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 Case Change
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rrold1
Starting Member

48 Posts

Posted - March 17 2010 :  17:58:18  Show Profile  Reply with Quote
With the addition of Ajax, is there a way to clean up all lower case characters? We have a good number of folks who enter all of their info in lower case:

john p public
123 buena vista boca dr 1st fl
southern va 12345

We have to clean it up manually. I think that 20 to 30 percent do this or all upper case.

Any thoughts on adding this feature?

Thanks

rrold1
Starting Member

48 Posts

Posted - April 13 2010 :  13:49:30  Show Profile  Reply with Quote
Nobody else has this issue? If not, how are others handling it?

Thanks
Go to Top of Page

spinobject
Starting Member

USA
21 Posts

Posted - April 17 2010 :  14:53:13  Show Profile  Visit spinobject's Homepage  Reply with Quote
You could do something like this:

<%
function capit(thetext)
outtext=""
intext=(lcase(thetext))
do while instr(intext," ")>0
chunk = left(intext, instr(intext," "))
outtext=outtext & " " & left(ucase(chunk),1) & right(chunk,len(chunk)-1)
intext= right(intext,len(intext)-instr(intext," "))
loop
outtext=outtext & " " & left(ucase(intext),1) & right(intext,len(intext)-1)
capit=outtext
end function
%>

<%
gotit=capit("some is lower AND SOME IS CAP")
response.write gotit
%>
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00