The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
STARTVIEW and Programming
04-06-2021, 12:17 AM
Post: #1
STARTVIEW and Programming
Does STARTVIEW automatically terminate a program? If it does, the user will not be able to solve an equation and stay in a program.

I received an email asking me advice for an equation library.

Example:

Code:
EXPORT sampleprgm()
LOCAL mh, ch, d;

mh:=2;   // after each calculation ask the user if they want to exit the program (1.  yes,  2. no)

WHILE mh==2 DO

// main menu
CHOOSE(ch,"title",list of choices);

// one of the menu choices
IF ch==1 THEN
CHOOSE(d,"title",list of choices_submenu);

IF d==1 THEN
calculations and commands here
[b]STARTVIEW(2,1)[/b]
CHOOSE(mh,"Quit?",{"Yes","No"});
END;    // end submenu choice (d)

END;   // end main menu choice (ch)
...
END;   // end the while loop
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
STARTVIEW and Programming - Eddie W. Shore - 04-06-2021 12:17 AM
RE: STARTVIEW and Programming - roadrunner - 04-07-2021, 12:26 AM
RE: STARTVIEW and Programming - C.Ret - 04-07-2021, 07:36 PM



User(s) browsing this thread: 1 Guest(s)