General information
Category:
Coding, syntax & commands
Samir, two things about your code.
1. will it work on this line? try it out.
2. cut and paste this line as is.try your code on it and see what happens.
Alan
>Thanx Sergey
>
>I am sorry for replying late.
>
>Actully, the snippet which you gave me, would make only the first Alphabet of the string Capital.
>
>I have written a small loop which searches for a dot(.) in the string and changes the case to UPPER for the next character after the dot.
>
>Anyways, Thanx again.
>
>Local lcNewText
>lcNewText = ""
>tcText = Ltrim(tcText)
>For iLen = 1 To Getwordcount(tcText,'.')
> cTmp = lcNewText
> lcNewText = Lower(Substr(tcText,Len(lcNewText)+1,Iif(Atc('.',Right(tcText,Len(tcText)-Len(lcNewText)+1))=0,Len(tcText)-Len(lcNewText),Atc('.',Right(tcText,Len(tcText)-Len(lcNewText)+1)))))
> lcNewText = Space(1) + Upper(Left(Alltrim(lcNewText),1)) + Substr(lcNewText,2)
> lcNewText = cTmp + lcNewText
>Endfor
>
>Return Ltrim(lcNewText)
>
>
>
>Regards,
>Samir
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only