C-code icon.. does not stop ..!!! (1)
Posted: Sun Nov 24, 2019 4:46 pm
Hello there ... so I was attempting to test some program that I wanted to transmogrify... from mikroC PRO compiler... C - coding... into flowcode8.. and came across something really peculiar...!!
So I have attached some PNG screenshots of flowcode program, and then the compiler errors it produces... It's really all plain to see....
The problem seems that the "effect" of the C-code icon.. does not stop at the end of the text one has typed into the C-code icon box...!! but when compilation takes place... the next icon... as a calculation icon.. becomes involved in the compilation... (even though it's got nothing to do with the C-code part.,... so errors occur... as can be seen in the PNG files...
What I have noted... is that if I have just one line... of coding... then for some reason... it like .... OVERFLOWS ... downwards into the next icon... whatever it is... (in the examples... the calculation box)... If I add another line of code... whatever... it seems to then leave the calculation box alone.... BUT... have a look please at the PNG files...
Then if I want a variable... from a calculation in the code... to 'become involved'... in the C-coding.. I have to define that variable... with a FCV_ preceding the variable name... (is this correct?)...
So now... also I want to know... does flowcode ... support direct usage ... as variables.. REGISTERS from the hardware of the selected PIC chip.??
In mikroC PRO code... it appears to me that... like for example... the one REGISTER within the processor... namely CCPR1L ... lower 8 bits of the two 8 bit registers, is used directly... in the program... (there are other registers... BUT.. just an example... does flowcode do that...?? please...??
Then if so... do I just use it as it's name... or must I declare it somewhere... somehow...??? MikroC PRO does not need this declaration or manipulation at all.. you merely just merrily add the variable... into the C-code... and away you go..???
I hope you can fix this problem... pretty simply.... please...???..
I will have to attach the other files to 2 other empty messages...
regards DCW...
So I have attached some PNG screenshots of flowcode program, and then the compiler errors it produces... It's really all plain to see....
The problem seems that the "effect" of the C-code icon.. does not stop at the end of the text one has typed into the C-code icon box...!! but when compilation takes place... the next icon... as a calculation icon.. becomes involved in the compilation... (even though it's got nothing to do with the C-code part.,... so errors occur... as can be seen in the PNG files...
What I have noted... is that if I have just one line... of coding... then for some reason... it like .... OVERFLOWS ... downwards into the next icon... whatever it is... (in the examples... the calculation box)... If I add another line of code... whatever... it seems to then leave the calculation box alone.... BUT... have a look please at the PNG files...
Then if I want a variable... from a calculation in the code... to 'become involved'... in the C-coding.. I have to define that variable... with a FCV_ preceding the variable name... (is this correct?)...
So now... also I want to know... does flowcode ... support direct usage ... as variables.. REGISTERS from the hardware of the selected PIC chip.??
In mikroC PRO code... it appears to me that... like for example... the one REGISTER within the processor... namely CCPR1L ... lower 8 bits of the two 8 bit registers, is used directly... in the program... (there are other registers... BUT.. just an example... does flowcode do that...?? please...??
Then if so... do I just use it as it's name... or must I declare it somewhere... somehow...??? MikroC PRO does not need this declaration or manipulation at all.. you merely just merrily add the variable... into the C-code... and away you go..???
I hope you can fix this problem... pretty simply.... please...???..
I will have to attach the other files to 2 other empty messages...
regards DCW...