notebook code error
|
01-02-2023, 07:10 AM
Post: #1
|
|||
|
|||
notebook code error
Hi, I'm trying to make a notebook-style application, but it gives me a syntax error and I can't find the solution.
Code: EXPORT Notebook() |
|||
01-02-2023, 08:34 AM
Post: #2
|
|||
|
|||
RE: notebook code error
I can see one issue : you define a local variable mainMenuOptions, but in the WHILE loop you call it mainMenuOption, without āsā.
|
|||
01-03-2023, 01:06 AM
Post: #3
|
|||
|
|||
RE: notebook code error
I dont know if CASE works that way on the prime
here is a Example from the Demo Case #pragma mode( separator(., integer(h32) ) EXPORT Demo_CASE() BEGIN LOCAL my_rnd,out_str,forever; REPEAT PRINT(); FOR J FROM 1 TO 10 DO my_rnd:=ROUND(RANDOM(1,100),0); out_str:="Run "+J+", RND:="+my_rnd; CASE IF my_rnd<=25 THEN PRINT(out_str+" <= 25") END; IF my_rnd<=50 THEN PRINT(out_str+" <= 50") END; IF my_rnd<=75 THEN PRINT(out_str+" <= 75") END; DEFAULT PRINT(out_str+" <= 100"); END; END; PRINT("Press any key to repeat, ON to exit."); WAIT(); UNTIL forever; END; |
|||
01-04-2023, 04:18 AM
Post: #4
|
|||
|
|||
RE: notebook code error | |||
01-04-2023, 04:22 AM
Post: #5
|
|||
|
|||
RE: notebook code error
(01-03-2023 01:06 AM)Dougggg Wrote: I dont know if CASE works that way on the prime Thanks for the info, I'll check it out. |
|||
01-04-2023, 04:39 AM
(This post was last modified: 01-04-2023 05:45 AM by DrEureka.)
Post: #6
|
|||
|
|||
RE: notebook code error
I made a modification instead of using "case" use conditionals, now I have a problem on line 43 that I don't understand why
Code: EXPORT Notebook() |
|||
01-04-2023, 01:47 PM
(This post was last modified: 01-04-2023 04:49 PM by roadrunner.)
Post: #7
|
|||
|
|||
RE: notebook code error
(01-04-2023 04:39 AM)DrEureka Wrote: I made a modification instead of using "case" use conditionals, now I have a problem on line 43 that I don't understand why Here's what i see on a short inspection: 1. A number of varialbles are not defined; 2. Some variables have an "s" on the end such as noteTitle some places and noteTitles other places; 3. The command LENGTH() shoud be length() Fix these, then see if it compiles. -road |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)