Ability to recognize equality of two strings in if command

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

Ability to recognize equality of two strings in if command

#1 Post by jet_media » 25 Mar 2014 19:56

for ex:


dim s as string[16]
s="only mikrobasic!"


if s="only mikrobasic!" then
...
....
else
...
...
end if

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

Re: Ability to recognize equality of two strings in if comm

#2 Post by filip » 26 Mar 2014 15:06

Hi,

There is a strcmp routine that compares two strings and returns zero if the strings are equal.

Regards,
Filip.

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

Re: Ability to recognize equality of two strings in if comm

#3 Post by jet_media » 05 Apr 2014 23:37

filip wrote:Hi,

There is a strcmp routine that compares two strings and returns zero if the strings are equal.

Regards,
Filip.
Thank you :wink:

Post Reply

Return to “mikroBasic PRO for AVR Wish List”