HP Forums
Coments in a Prime Program - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: Coments in a Prime Program (/thread-346.html)



Coments in a Prime Program - Les_Koller - 01-06-2014 07:11 AM

Sorry if this has been discussed, but I am having a problem. I am having a problem with EVERY program I download or write, when I come to a comment line my listing stops executing. As an example, I'd like to quote just a portion from Egan Ford's Breakout Program. I hope you don't mind, Egan...

// breakout hp prime v 1.0
//
// Egan Ford <egan@sense.net>
//
// Inspired by Tugdual's Pong alpha and Atari 2600 Breakout
//

brickout();
drawbricks();
drawballs();
drawscore();
drawtext();

local j, t, m;
local paddle_x, paddle_y, paddle_w, paddle_h, paddle_m; // paddle
local score_y, brick_h, brick_n; // bricks
local brick_colors, brixel_x, brixel_y, brick_w;
local x, y, vx, vy, ball_m, ball_w, ball_n, rel_x; // ball

The problem is, the emulator will not read anything until I delete the 1st six lines beginning //. When I delete these lines, my calculator read down until the line that ends // paddle. This line cannot be read until I erase the //paddle, then it works.

I have to go through the entire line erasing all comment, then the calculator and software works perfectly. What am I doing wrong?


RE: Coments in a Prime Program - Egan Ford - 01-06-2014 04:14 PM

I haven't had any problems, but to make sure your browser isn't changing the characters I've updated my breakout post with a zip file. See if that works.


RE: Coments in a Prime Program - Han - 01-06-2014 04:19 PM

May I suggest that the moderators move this thread to be placed within the Breakout thread, since this does not actually consist of a new program.


RE: Coments in a Prime Program - Les_Koller - 01-18-2014 10:55 PM

(01-06-2014 04:19 PM)Han Wrote:  May I suggest that the moderators move this thread to be placed within the Breakout thread, since this does not actually consist of a new program.


This has NOTHING to do with the BREAKOUT thread per se... I specifically stated it happens for EVERY single Prime program I download. Might as well re-post it in every Prime Software sub-topic then huh? Smile


RE: Coments in a Prime Program - patrice - 01-19-2014 03:34 AM

Quote:This has NOTHING to do with the BREAKOUT thread per se
This has NOTHING to do in the Software Library !


RE: Coments in a Prime Program - Les_Koller - 01-20-2014 06:25 AM

Touche!