case Sensitive
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Sun Jan 22 13:11:11 EST 2006
Hi Liam,
Björnke showed you why it did not work.
But you could only write:
put toUpper(char 1 of item 1 of fld "1") into char 1 of item 1 of fld
"1"
put char 1 of item 1 of fld "1" into fld "2"
Have a look at the toUpper, toLower, numToChar and CharToNum
functions in the docs :-)
Le 22 janv. 06 à 19:00, liamlambert a écrit :
> In order to solve the problem of case sensitive I would like to do
> something like this but there is something not right here
>
>
> put "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z" into
> tLowerCase
> put "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z" into
> tUpperCase
> get char 1 of item 1 fld "1"
> put it into tChar
> repeat with x = 1 to the number of items of tUpperCase
> if tChar contains item x of tLowerCase then replace tChar with
> item x
> end if
> end repeat
> put it into fld "2"
Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------
----------------------
http://www.sosmartsoftware.com/ eric.chatonet at sosmartsoftware.com/
More information about the use-livecode
mailing list