[Coco] INSTR command.

coco at jechar.ca coco at jechar.ca
Wed Aug 15 16:26:40 EDT 2018


  From what I understand the command

  C=INSTR(S,SR$,"X")

  Should work and give me a 0
  if X is not found in the string SR$
  or a number corresponding  to the position
  of X in the screen.

  ie.

  10 S=0:SR$="SEX";C=0
  20 C=INSTR(S,SR$,"X")
  30 PRINT C

  Should come back with 3

  Instead I get a  ?FC ERROR IN 20

  This is the standard Coco3 basic I am running.

  Anyone got any Idea what I did wrong.



More information about the Coco mailing list