RE: [bascom] BASCOM-AVR: INSTR fails?
Hi,
I checked. It is a problem in the library routine. It will be corrected in
the next beta.
Best regards,
Mark
> -----Original Message-----
> From: owner-bascom@grote.net [mailto:owner-bascom@grote.net]On Behalf Of
> Karl-Heinz Weiss
> Sent: vrijdag 15 juni 2001 10:15
> To: bascom@grote.net
> Subject: [bascom] BASCOM-AVR: INSTR fails?
>
>
> Hi Mark,
>
> the INSTR command seems to fail in a very complex way. Please try this:
>
> Dim A As String * 64
> Dim P As Byte
> Dim Temp As String * 4
> Temp = Chr(&Hf0) + Chr(&H55) + Chr(&Hf2)
> A = String(11 , &HF0)
> A = A + Temp
> P = Instr(a , Temp)
> Print P
> End
>
> P prints as "0" although TEMP *must* be contained in the A-String!
> But: if you put an even nuber of &F0-characters in front of
> the comparestring, everything works fine.
>
> Best Regards, Karl
>
>
>