Page 1 of 1
What is wrong with this simple example?

Posted:
Mar 7, 2005 @ 9:58pm
by zeeforel

Posted:
Mar 8, 2005 @ 4:03am
by PointOfLight
Could you be more specific as to what kind of error you're getting? I just copied everything from your sample, pasted it into a PPL file, and it ran just fine. As for the #code statement, it's better to let kornalius speak to this, but I believe it has to do with markings for the visual editor and how it relates the code to what you did visually in the editor.
more specific

Posted:
Mar 8, 2005 @ 9:30am
by zeeforel
Sorry, sorry

Posted:
Mar 8, 2005 @ 10:53am
by zeeforel
The code on the PPC differed from what I had on the PC. I thought there was some kind of automatic sync.
Sorry again but at least the code works!

Posted:
Mar 8, 2005 @ 1:39pm
by PointOfLight
That's what I don't understand. The Hello World function executed just fine for me. As for the code being different, it is and it isn't. When PPL compiles a program to run it on the PPC, it compiles the code and form into one module, which is what the #code and #form deliniations are for. Hopefully Kornalius will jump in here at some point so I'm not misspeaking, but I'm pretty sure that's what's going on. I'm not really sure why you're not seeing the results you'd expect from the program, though. It works just fine for me. Try creating a new PPL file (not a project), copying the code you pasted in this thread into the PPL file, and run it. Let us know if that works or not.

Posted:
Mar 8, 2005 @ 2:05pm
by kornalius
Hi,
The #code tag is an internal feature for the PIDE debugger to know which file and which component is being ran. Yes you can delete it, but it doesn't affect the program at all when running though.
how does the PIDE actually work?

Posted:
Mar 8, 2005 @ 9:50pm
by zeeforel

Posted:
Mar 8, 2005 @ 10:45pm
by PointOfLight

Posted:
Mar 9, 2005 @ 2:57am
by kornalius
OK!

Posted:
Mar 9, 2005 @ 10:39am
by zeeforel

Posted:
Mar 9, 2005 @ 10:05pm
by zeeforel