testing on case
Hershel Fisch
hershrev at realtorsgroup.us
Wed Dec 8 16:09:43 EST 2004
Thanks, I think its a bit to much when I wanted it to set up query's ,
too many functions involved. I hoped that there is a
if param(x) "is upperCase" then put xxx else put x
On Wednesday, December 8, 2004, at 03:46 PM, Dar Scott wrote:
>
> On Dec 8, 2004, at 1:28 PM, Dar Scott wrote:
>
>> Untested:
>>
>> function isCapitalized @x, n, m
>> constant capitalLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
>> return char 1 word n of line m of x is in capitalLetters
>> end isCapitalized
>
> Whoops!
>
> on mouseUp
> put "one two three" & lf & "Alpha beta" into x
> put isCapitalized(x,2,1) && isCapitalized(x,1,2)
> end mouseUp
>
> function isCapitalized @x, n, m
> constant capitalLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
> set the caseSensitive to true
> return char 1 word n of line m of x is in capitalLetters
> end isCapitalized
>
> Now tested.
>
> Dar
> ****************************************
> Dar Scott Consulting
> http://www.swcp.com/dsc/
> Programming Services
> ****************************************
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list