What is the return type of Instr and Strcmp?

Instr – integer (Numeric position)
Strcmp - integer ( if both the string are equal they result = 0)
Strcmp (Str1, Str2, Comparetype)
Comparing mode = 0 – Binary Comparing
1 – Textual Comparing

Showing Answers 1 - 3 of 3 Answers

Syntax of InStr

InStr([start,]string1,string2[,compare])

The InStr function can return the following values:
* If string1 is "" - InStr returns 0
* If string1 is Null - InStr returns Null
* If string2 is "" - InStr returns start
* If string2 is Null - InStr returns Null
* If string2 is not found - InStr returns 0
* If string2 is found within string1 - InStr returns the position at which match is found

Syntax of strcmp
strcmp ( const char * str1, const char * str2 )

Strcmp can return the following values:
*A zero value indicates that both strings are equal.
*A value greater than zero indicates that the first character that does not match has a greater value in str1 than in str2;
*And a value less than zero indicates the opposite.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions