When I use single letters or numbers it works like a charm but I would like to use longer strings such as "A23". Anything longer then one character and I get errors. Is this a limitation of picbasic?
When I use single letters or numbers it works like a charm but I would like to use longer strings such as "A23". Anything longer then one character and I get errors. Is this a limitation of picbasic?
Hi,
I think the answer simply is in your Manual ... HSerin Modifiers section.
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
The following is a technique that I got from Darrel Taylor. It will input a string, and search it for any number of strings.
Note that the "timeout" in the ArrayRead command is the number of characters in the string you are looking for during that pass.
Code:HSERIN2 300,InputTimeout,[Str CharArray\12\10] ; Take in max 12 chars optionally terminated by LF. ARRAYREAD CharArray,19,FailedFirst,[WAIT ("FirstStringToLookFor")] Goto FoundFirstItem FailedFirst: ARRAYREAD CharArray,21,FailedSecond,[WAIT (SecondStringToLookFor")] Goto FoundSecondItem FailedSecond:
Charles Linquist
I should always learn to read my text before hitting SUBMIT. In the example, I have it inputting only 12 chars, while it is testing for a substring of 19 or 21 chars - but you get the idea.
Charles Linquist
Hi, Gator
Did your pic decided to start ???
http://www.electro-tech-online.com/m...-anything.html
BTW, here is the best place to ask about PBP programs ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Not yet, it turned out to be a programmer error that I wasn't catching. At first it was giving a valid program response then I noticed that it still had an old program on the pic I was using. Building a new programmer today. Its ready to etch now, just waiting 'til morning to finish it.
And yes, picbasic has been the greatest thing since the pic came out! I can't stand programming with asm.
Bookmarks