add "like" operator

Post your requests and ideas on the future development of mikroBasic PRO for AVR.
Post Reply
Author
Message
jet_media
Posts: 39
Joined: 18 Apr 2012 09:13
Location: Iran

add "like" operator

#1 Post by jet_media » 22 Mar 2014 16:18

Compares a string against a pattern.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: add "like" operator

#2 Post by filip » 25 Mar 2014 13:59

Hi,

Could you please give me an example of this ?

Regards,
Filip.

jet_media
Posts: 39
Joined: 18 Apr 2012 09:13
Location: Iran

Re: add "like" operator

#3 Post by jet_media » 25 Mar 2014 20:00

filip wrote:Hi,

Could you please give me an example of this ?

Regards,
Filip.


for ex:

testCheck = "aBBBa" Like "a*a"
' The following statement returns True
testCheck = "aajshfsfh&%&%&a" Like "a*a"
' The following statement returns True
testCheck = "aajshfsfhb" Like "a*a"
' The following statement returns false

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: add "like" operator

#4 Post by filip » 28 Apr 2014 14:01

Hi,

Thank you for your suggestion, I will pass it to our developers.

Regards,
Filip.

Post Reply

Return to “mikroBasic PRO for AVR Wish List”