CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 113 users online: 7 members, 86 guests and 20 bots.
Members: geekboy1011, Hitechcomputergeek, Hooloovoo, trilesnik, uiouio111.
Bots: MSN/Bing (2), VoilaBot (4), Spinn3r (1), Magpie Crawler (2), VoilaBot (5), Googlebot (6).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
gaventemples31415


Member


Joined: 27 Sep 2013
Posts: 126
Location: Far,Far Away

Posted: 30 Sep 2014 07:26:07 pm    Post subject: Doors CS Questions

I'll probably have a TON of questions, so be prepared, everyone. The questions are mainly going to be about the libraries and occasionally little projects of mine (maybe). So, first questions:
1. What exactly is a stack?
2. In options, there's something called the [ON] hook. What does it do?
Is there any way to have DCS without its error handler? (No offense, Kerm, but I prefer the original OS's error handler better)
Back to top
qazz42


Vampire Killer


Joined: 07 Apr 2010
Posts: 4230

Posted: 30 Sep 2014 07:59:58 pm    Post subject: Re: Doors CS Questions

gaventemples31415 wrote:

2. In options, there's something called the [ON] hook. What does it do?


To answer this one I do believe that the ON hook is simply just a hook for ON and other keys (I think mode, but I cant seem to get it to work on my calc at the moment) that lets you open DCS fairly quickly from the OS.
_________________


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59259

Posted: 30 Sep 2014 09:05:55 pm    Post subject: Re: Doors CS Questions

gaventemples31415 wrote:
1. What exactly is a stack?
Are you talking about the Ans Stack?

qazz42 wrote:
gaventemples31415 wrote:

2. In options, there's something called the [ON] hook. What does it do?


To answer this one I do believe that the ON hook is simply just a hook for ON and other keys (I think mode, but I cant seem to get it to work on my calc at the moment) that lets you open DCS fairly quickly from the OS.
[ON][PRGM] launches Doors CS, and I forget the key combination that forces instant APD.

Quote:
Is there any way to have DCS without its error handler? (No offense, Kerm, but I prefer the original OS's error handler better)
Nope. There's no difference, though, other than Instant Goto. Smile
_________________


Back to top
gaventemples31415


Member


Joined: 27 Sep 2013
Posts: 126
Location: Far,Far Away

Posted: 01 Oct 2014 04:04:58 am    Post subject:

KermMartian wrote:
gaventemples31415 wrote:
1.What exactly is a stack?
Are you talking about the Ans Stack?
In the DCS Wiki, there are a few commands that deal with stacks, like a GUI stack. Can you explain what it is/does?

EDIT: So, I just looked at the wiki and it says the APD is opened by pressing [ON] and [STAT].
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59259

Posted: 01 Oct 2014 11:07:46 am    Post subject:

Thanks for checking that. The advantage of instant APD is that it returns you to where you were: [ON][STAT] in the program editor, for instance, will return you to the exact line in the program editor where you started when you turn the calculator back on.

Stack: The GUI Stack is the Doors CS abstraction for rendering GUIs. In case you're not familiar with the concept, a stack is a data structure that can also be called "last in, first out", or LIFO. In other words, think of it like a stack of papers on your desk. There are two operations you can perform: you can "push" a piece of paper onto the top of the stack, or you can "pop" a piece of paper off the top of the stack. If you push a piece of paper that we'll call "A", then "B" and "C", you'll have to pop "C" and then pop "B" before you can get to "A" again. The GUI stack is a stack because you push windows containing GUI elements on top of each other, then pop them off when you are done with them. You might push your program's main window onto the GUI stack, then the user might click a Settings button, which might push a settings dialog onto the stack. When the user clicks [X] on that dialog, you can have the GUI Stack pop that dialog off, leaving the main program window as the top thing on the stack again.

- The AnsStack is something that Merthsoft requested, and is a very nifty tool that sadly is not widely-used in any program. It lets you push and pop Ans to a stack, regardless of the type of data (number, string, list, matrix) stored in Ans. This essentially gives you access to an arbitrary number of Ans variables.
_________________


Back to top
gaventemples31415


Member


Joined: 27 Sep 2013
Posts: 126
Location: Far,Far Away

Posted: 01 Oct 2014 03:29:12 pm    Post subject:

So, if I understand correctly, it's push on and pop off? You can't use a number on the bottom?
_________________
KermM: Nothing's fun without a bit of a challenge.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59259

Posted: 01 Oct 2014 03:30:17 pm    Post subject:

gaventemples31415 wrote:
So, if I understand correctly, it's push on and pop off? You can't use a number on the bottom?
Correct, that would be like an array. You can only access the item on the very top of the stack until you remove it.
_________________


Back to top
gaventemples31415


Member


Joined: 27 Sep 2013
Posts: 126
Location: Far,Far Away

Posted: 01 Oct 2014 04:14:11 pm    Post subject:

How could I create and read data from appvars? Is it possible with these libs?
_________________
KermM: Nothing's fun without a bit of a challenge.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

Go to Registration page
   
View previous topic :: View next topic  
Page 1 of 1 All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2014 Cemetech & Kerm Martian :: Page Execution Time: 0.029717 seconds.