Remote-processing CAMBASIC Instrukcja Użytkownika Strona 98

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 208
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 97
Commands - 65
INSTR
Function
SYNTAX: a = INSTR(n,string,substring)
PURPOSE: Returns the position of the first occurrence on a sub-string within a string.
REMARK S: The parameter n spe cifies where the sear ch is to start in the string. A “1” signifies the leftmost
position in the string. This parameter is not optional. Its range is 1 to 252.
string is a string constant or string variable that is to be searched.
substring is the string variable or constant to be searched for.
If n is greater than the length of string or if string is null or if substring cannot be found, INSTR
returns zero. If substring is null, INST R returns n or one.
RELATED: LEFT$, RIGHT$, LEN and MID$
EXAMPLE: 10 A$="BOOHOO"
20 B$="HOO"
30 PRINT INSTR(1,A$,B$)
RUN
4
ERROR: < Illegal argument> if n < 1
Przeglądanie stron 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 207 208

Komentarze do niniejszej Instrukcji

Brak uwag