1
Technical support / Re:Compiler error ?
« on: March 10, 2004, 07:23:21 AM »
I have seen a strange thing.. at least it seems strange to me being a native VB/QBasic programmer.. but I've noticed the you cannot include the THEN syntax in the IF THEN statement when using integer values. For example.. I have to use the following:
IF A<B
[...code]
ENDIF
however if using strings I use this:
IF STRCMP(A$, "SOME_STRING")=0 THEN
[...code]
ENDIF
If I try to include 'THEN' after integer constants or variables I get a syntax error. Maybe you can work with that and see.
This is different when using
IF A<B
[...code]
ENDIF
however if using strings I use this:
IF STRCMP(A$, "SOME_STRING")=0 THEN
[...code]
ENDIF
If I try to include 'THEN' after integer constants or variables I get a syntax error. Maybe you can work with that and see.
This is different when using
When compiling a special function with lots of nested IF THEN ELSEs, I get "Unknown keyword" error that shows up a variable. I delete most of the function, it compiles, I paste the code back, it compiles, then I go to transfer the program to the PLC and it bombs on the compile with "unknown keyword". Any suggestions ?