RE: testing on case

2004-12-13 Thread Lynch, Jonathan
ecember 10, 2004 11:12 AM To: How to use Revolution Subject: RE: testing on case Jonathan - That's weird, right? When I do this in the messagebox or in a button script: put matchText( z, "^[A-Z]") I definitely get "false" returned. But when I do this in the

Re: testing on case

2004-12-10 Thread Dar Scott
On Dec 10, 2004, at 9:12 AM, [EMAIL PROTECTED] wrote: put matchText( z, "^[A-Z]") I definitely get "false" returned. matchText( "mom", "^[A-Z]") ==> false matchText( "Mom", "^[A-Z]") ==> true matchText( "=Mom", "^[A-Z]") ==> false matchText( "\Mom", "^[A-Z]") ==> false This is consistent wi

RE: testing on case

2004-12-10 Thread James . Cass
Revolution To: "How to use Revolution" <[EMAIL PROTECTED]> cc: Subject:RE: testing on case Hi James... I tried: matchText( z, "^[A-Z]") and it worked fine for me... I tested it in the message box... matchText("b","^[

Re: testing on case

2004-12-09 Thread Mark Wieder
Dar- Wednesday, December 8, 2004, 5:34:27 PM, you wrote: >> on IsUpperCase w >> return toUpper(w) is w >> end IsUpperCase DS> Cool. But won't this need caseSensitive set to true? Right you are. My fingers think faster than my head. -- -Mark Wieder [EMAIL PROTECTED] __

RE: testing on case

2004-12-09 Thread Lynch, Jonathan
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 3:47 PM To: How to use Revolution Subject: Re: testing on case > The expression matchText( z, "^[A-Z]") > will return true if (and only when) the > first character is an A

Re: testing on case

2004-12-09 Thread James . Cass
AIL PROTECTED]> | | cc: | | Subject: Re: testing on case | >-

RE: testing on case

2004-12-09 Thread Lynch, Jonathan
)) then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hershel Fisch Sent: Thursday, December 09, 2004 1:49 PM To: How to use Revolution Subject: Re: testing on case on the first letter , but good to know-'em both ways. Thanks,Hershel On Wedn

Re: testing on case

2004-12-09 Thread Dar Scott
On Dec 9, 2004, at 11:46 AM, Hershel Fisch wrote: if matchText( param(x), "^[A-Z]") then put xxx else put x I don't get it The expression matchText( z, "^[A-Z]") will return true if (and only when) the first character is an ASCII capital letter. The "^" matches the beginning of the string (or li

Re: testing on case

2004-12-09 Thread Scott Rossi
>> Are you trying to test the first letter only, or the entire string? >> The proposals so far only test the first character of the string. If >> you need the whole thing to be uppercase: Not sure if someone already tossed this solution out: function caseTest tString set the caseSensitive to

Re: testing on case

2004-12-09 Thread Hershel Fisch
on the first letter , but good to know-'em both ways. Thanks,Hershel On Wednesday, December 8, 2004, at 05:24 PM, Frank D. Engel, Jr. wrote: Are you trying to test the first letter only, or the entire string? The proposals so far only test the first character of the string. If you need the whol

Re: testing on case

2004-12-09 Thread Hershel Fisch
On Wednesday, December 8, 2004, at 04:46 PM, Dar Scott wrote: On Dec 8, 2004, at 2:09 PM, Hershel Fisch wrote: 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 I don't und

Re: testing on case

2004-12-09 Thread Klaus Major
Hi Jonathan, What would be wrong with... Set the casesensitive to true If x = toupper(x) then put xxx else put x nothing, actually :-) Best Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.

RE: testing on case

2004-12-09 Thread Lynch, Jonathan
What would be wrong with... Set the casesensitive to true If x = toupper(x) then put xxx else put x -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Major Sent: Thursday, December 09, 2004 10:50 AM To: How to use Revolution Subject: Re: testing on

Re: testing on case

2004-12-09 Thread Klaus Major
Hi Herschel, 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 maybe checking "chartonum(char 1 of xyz)" will do? If < 97, it will be a capital... Regards Klaus Major [EMAI

Re: testing on case

2004-12-08 Thread Dar Scott
On Dec 8, 2004, at 5:06 PM, Mark Wieder wrote: on IsUpperCase w return toUpper(w) is w end IsUpperCase Cool. But won't this need caseSensitive set to true? Dar Dar Scott Consulting http://www.swcp.com/dsc/ Programming Services

Re: testing on case

2004-12-08 Thread Mark Wieder
Dar- Wednesday, December 8, 2004, 1:46:05 PM, you wrote: or... on IsUpperCase w return toUpper(w) is w end IsUpperCase on IsLowerCase w return toLower(w) is w end IsLowerCase if IsUpperCase(x) then put xxx else put x -- -Mark Wieder [EMAIL PROTECTED] ___

Re: testing on case

2004-12-08 Thread Alex Tweedly
At 17:24 08/12/2004 -0500, Frank D. Engel, Jr. wrote: Are you trying to test the first letter only, or the entire string? The proposals so far only test the first character of the string. If you need the whole thing to be uppercase: function uppercase ofText set the caseSensitive to true rep

Re: testing on case

2004-12-08 Thread Frank D. Engel, Jr.
Are you trying to test the first letter only, or the entire string? The proposals so far only test the first character of the string. If you need the whole thing to be uppercase: function uppercase ofText set the caseSensitive to true repeat for each char ch in "abcdefghijklmnopqrstuvwxyz"

Re: testing on case

2004-12-08 Thread Dar Scott
On Dec 8, 2004, at 2:46 PM, Dar Scott wrote: If you must avoid a function (sniff, I like functions), then consider this: if matchText( param(x), "^[A-Z]") then put xxx else put x or this (if useUnicode is not true and you know it starts with a letter) if charToNum( param(x) ) < 97 then put xxx el

Re: testing on case

2004-12-08 Thread Dar Scott
On Dec 8, 2004, at 2:09 PM, Hershel Fisch wrote: 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 I don't understand why a function won't work. Here is a simpler function

Re: testing on case

2004-12-08 Thread Hershel Fisch
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: func

Re: testing on case

2004-12-08 Thread Dar Scott
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

Re: testing on case

2004-12-08 Thread Dar Scott
On Dec 8, 2004, at 1:08 PM, Hershel Fisch wrote: how do I test on the case of a word of a line ? Untested: function isCapitalized @x, n, m constant capitalLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" return char 1 word n of line m of x is in capitalLetters end isCapitalized If that misses the ma

Re: testing on case

2004-12-08 Thread Hershel Fisch
Sorry , meant "upper or lower case" (was to engaged in the work) On Wednesday, December 8, 2004, at 03:19 PM, Frank D. Engel, Jr. wrote: What kind of test do you have in mind? word 4 of line 5 the first word of line 6 the last word of the first line "hello" is among the words of the last line word

Re: testing on case

2004-12-08 Thread Frank D. Engel, Jr.
What kind of test do you have in mind? word 4 of line 5 the first word of line 6 the last word of the first line "hello" is among the words of the last line word 3 of line 6 is not word 2 of line 9 On Dec 8, 2004, at 3:08 PM, Hershel Fisch wrote: HI , all how do I test on the case of a word of a l

testing on case

2004-12-08 Thread Hershel Fisch
HI , all how do I test on the case of a word of a line ? Thanks, Hershel ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution