Thanks Richard, I had forgotten about the DIG function. Thanks for the reminder, I'll give it a try.
Thanks Richard, I had forgotten about the DIG function. Thanks for the reminder, I'll give it a try.
Continuing with the same project. I have run into this problem many times over the years and I have yet to understand it. Why does this "If Then" statement fail to compile.
I can rewrite it in any form with the same results. It does not compile.Code:if Bvar = 0 then Cimage else Avar = Bvar gosub GetImage endif
I get an error code "Endif without a If...Then statment. It seems like a no brainer but I just don't' understand what I'm doing wrong.
one of the reasons snippets are fairly useless is that assumptions have to be made, however assuming Cimage is a subroutine
the correct syntax is
Code:if Bvar = 0 then gosub Cimage else Avar = Bvar gosub GetImage endif
Warning I'm not a teacher
Your right as always! Not very forgiving is it. The format doesn't seem to fallow that of other functions.
thanks Richard
I've been trying to find some code to extract the 64-bit serial code from the 1wire devise. I think DT posted this routine but I have been unable to find it. Can anyone help?
Bookmarks