Professional Documents
Culture Documents
"
1. Mid(Microsoft.VisualBasic.Right(strString, 10),4,5) = ____; Mid("xcellence",4,5) = "llenc"
Parameters Result/datatype Output Value
Right (string, length) String Microsoft.VisualBasic.Right(strString, 10) =
"xcellence"
Mid function (string,start [,length]) Returns the Dim strExample As String = “This is an example.”
characters Dim intResult As Integer
intResult = Mid (strExample, 1, 4) = “This”
'a stand-alone stmt or found at right side of "="
Mid statement (target, start [,length]) Replaces the Mid (strExample, 1, 4) = “That” => “That is an example.”
character ‘found at left side of "=";
2. Mid(strString, InStr(4,strString, "o"), 5) = ____; = Mid(strString, 7, 5) = "old_h"
InStr (startPos'n, strSearched, Character InStr(4,strString, "o") = 7
strToFind, Compare) position
3. InStrRev(strString, "up", Len(strString),1) = ____;
Len (strIength); since a Number of Len(strString) = 31
function, pos'n starts at 1 characters
InStrRev (strSearched,strToFind, Character InStrRev(strString, "up", 31,1) = 4
startPos'n, 0 or 1); 0- position
binary
comparison(default)
4. InStrRev(strString, "OS", Len(strString),0) = ____; InStrRev(strString, "OS", 31,1) = 0 since "OS" not in strString
5. InStrRev(strString, "OR", Len(strString),1) = ____; InStrRev(strString, "OR", 31,1) = 14 since case is ignored
6. InStrRev(strString, "OR", Len(strString),0) = ____; InStrRev(strString, "OR", 31,1) = 0 since case is NOT ignored