Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4640 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

Hello everyone;

i was wondering as i don't see any built in functions to check for "A" vs "a" how i can do that!

I even looked on bd's website and can't find matchCaseUpper or Lower,etc

I was trying something like this, but no luck yet!




Let ( [

	  word  = "ArChiVe";     // my word

      marker = "^case^";    // this makes it unique

      find = marker & "ArChiVe" ;   // ^case^ArChiVE

      result = substitute ( word; "ArChiVe"; find )    //What up?



];

position( word; find ; 1 ; 1)

)



- i don't think i am close, need some advice please.

Edited by imoree
Posted

i don't think i am close, need some advice please.

Close to what? You didn't say what's the purpose here - and sadly, your process doesn't make it clear either.

Posted

Close to what? You didn't say what's the purpose here - and sadly, your process doesn't make it clear either.

I am trying to match the case of Q instead of q

so what i need is to make search criteria, but my string is actually

QWERTYUIOPASDFGHJKLZXCVBNM for uppercase

Using exact, that is what i have to use.

was trying to do a little cleaner

Posted (edited)

GOT IT!




// MatchCase ( text; search; match )



let([

      tag = "%^Unique^%";

      find = tag & search ;

      text = substitute ( text; search; find )

       ];

       position ( text; find ; 1; 1)  

      )



eg. text = "1234567890qwertyuiopasdfghjklzxcvbnm" . results in 0

      text = "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" . results in 11 ( if search is "QWE"  or uppercase letters here )

Edited by imoree
Posted

Changes to above; Cleaner

result is either 1 or 0


Let([



      tag = "%^Unique^%";

      find = tag & search; 

      text = Substitute ( text; search; find );

      final = Position ( text; find ; 1; 1 )

];

      Case ( final = 0; 0; 1 )

)

This topic is 4640 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.