Results 1 to 2 of 2

Thread: Check for uppercase? [RESOLVED]

Threaded View

  1. #2

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    Re: Check for uppercase?

    Well I finally figured it out. Man this took much longer than I thought for such a simple thing, but I guess my mind works slowly

    stringvar x;
    numbervar i;
    stringvar z;
    numbervar strLen;
    global stringvar UCaseCheck := 'Pass';

    strLen := len({Command.Invoice Number});
    x := totext({Command.Invoice Number});
    z := totext({Command.Invoice Number});
    ucase(x);

    For i := 1 to strLen Do
    (
    Local NumberVar charPos := i;
    if AscW(x[charPos]) <> AscW(z[charPos]) then UCaseCheck := 'Fail';
    );

    UCaseCheck;
    Last edited by BIGGY; Mar 30th, 2007 at 04:39 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width