Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement