A different example: DIM s AS STRING DIM x as INTEGER ... s = CHR$(0) IF ASC(MID$(s,1,1) <> 0 THEN INC x ...Freezes on the last line above when single stepping -Fernando