LibreOffice 7.3 Help
แแแ แฃแแแแก แกแขแ แแแแแก แแแแแชแแแก แกแฎแแ แกแขแ แแแแจแ.
Instr แคแฃแแฅแชแแ แแแ แฃแแแแก แแ แแแแแชแแแก แแแแแฎแแแแแก แแแแแชแแแก. แแฃ แกแขแ แแแแ แแแ แแแแซแแแแ, แแแจแแ แคแฃแแฅแชแแ แแแ แฃแแแแก 0-แก.
InStr ([Start As Long,] Text1 As String, Text2 As String[, Compare])
Integer
Start: A numeric expression that marks the position in a string where the search for the specified substring starts. If you omit this parameter, the search starts at the first character of the string. The minimum allowed value is 1. The maximum allowed value is 2,147,483,648.
Text1: แกแขแ แแแแแก แแแแแกแแฎแฃแแแแ, แ แแแแแแช แแกแฃแ แ แแซแแแแ.
Text2: แกแขแ แแแแแก แแแแแกแแฎแฃแแแแ, แ แแแแแก แซแแแแแช แแกแฃแ แ.
Compare:แแ แฉแแแแแ แ แแชแฎแแแแ แแแแแกแแฎแฃแแแแ, แ แแแแแแช แแแแกแแแฆแแ แแแก แจแแแแ แแแแก แขแแแก. แแ แแแ แแแแขแ แแก แแแแจแแแแแแแ แจแแแซแแแแ แแงแแก 0 แแ 1. แกแแฌแงแแกแ แแแแจแแแแแแแ แแ แแก 1. แ แแแแแแช แแแแกแแฎแแ แแแก แ แแ แขแแฅแกแขแแก แจแแแแ แแแ แแ แแแแแกแฎแแแแแแก แแแ แแ แแแขแแ แ แแกแแแแก. แแแแจแแแแแแแ 0 แแแฃแแแแแแก แแแแแ แฃแ แจแแแแ แแแแก, แ แแแแแแช แแแแแกแแแฆแแ แแแก แแแ แแ แแแขแแ แ แแกแแแแก.
To avoid a run-time error, do not set the Compare parameter if the first optional parameter is omitted.
Sub ExamplePosition
Dim sInput As String
Dim iPos As Integer
sInput = "Office"
iPos = Instr(sInput,"c")
Print iPos
End Sub