skimask , Look before you leap.... Look at where the colon lies........
Dave Purola.
N8NTA
skimask , Look before you leap.... Look at where the colon lies........
Dave Purola.
N8NTA
Well, I was talking about the code attached above. He has this line (along with another that's the same way):
If scancode.0 = 1 Then: parity = parity + 1
----------------------^
I don't know how that'll compile, if it will compile good and not cause an error, if it'll work as written, or what will happen. It just doesn't look right to me, that's all...
And I'm always keeping track of where my colon's lie...![]()
skimask, The way I interpret a colon is to terminate a line of code and, allow the start of another command string to be placed on the same line. If this is the case then all of his IF/THEN statements should have and ending ENDIF command. I have not tried this as I never write code in this fashion. It is much to confusing and hard to follow the flow... Have you ever tried this format? If it works then GREAT...
Dave Purola,
N8NTA
I guess I use whatever fits/works and takes up as few actual lines on the screen.
As far as being confusing, well, I usually don't write code for other folks (reference the High Colonic Master), and if I wrote it for myself, then I'd better be able to follow it! And as long as a guy keeps a constant format...well, that should be all ya need...
But, I'm going to play with the If/Then colon format thing tonight when I get home and see what happens...
Are you guys looking to emulate a PS/2 keyboard or get data from a PS/2 keyboard?
I have pure PBP code for both if you need it.
PJALM's
is possible upload the code?
i use http://www.picbasic.co.uk/forum/arch...hp/t-2736.html but not work leds
many thanks
..: Don't worry, be happy :..
showed the carrot and now missing in action.
Where is the guy with the PBP code ?
Bookmarks