Followed your instructions and they appear to have worked just as you stated that they would. This was the application code....
PROGRAM Box;
{ ORWoody 090707
This application will create a rectangle with square or radius'd corners using corner points as defined by the user.
Environment:
Windows XP Home 5.1 2600 SP2
DataCAD 12.07.01.07
XBuilder 090323-RC}
VAR
!--Register
I:integer;
!VAR>
BEGIN !--Action 10
wrtmsg('Box "i-Prompt"');
wrterr('Box "!-Message"');
beep;
wrtlvl('Box'); !dynamic Function Menu title--init.
lblsinit;
lblset( 1,'Void'); !F1
lblset(20,'Exit'); !S0
lblson; !activate
getesc(I); !...
!~ Key:=I;
END Box.! 10
The menu choices were F1 Void
S0 Exit
Last Friday, I ordered a book on Pascal from Amazon so should have it sometime this week. In the meantime, I am going through the DCAL manual with many of the same characteristics and capabilities of your average parrot. I am able to pronounce the words and definitions, but they have no meaning for me, yet.
As you mentioned in your last note, we'll need to truncate the files to the relevant material for each step. What I'll try to do is to show whatever you ask me to show and to describe what results I get after each step and update. That should make it clear to you as to whether I correctly complied with what you expected of me.
Then, at other times, I can forward the entire file to you so that you can display on the forum, whatever specific areas upon which you want to clarify for me and for others.
One quick question. I know that := means "assigned" but what does just the : stand for and what's it called?
Thank you,
As you mentioned in your last note, we'll need to truncate the files to the relevant material for each step. What I'll try to do is to show whatever you ask me to show and to describe what results I get after each step and update. That should make it clear to you as to whether I correctly complied with what you expected of me.
Then, at other times, I can forward the entire file to you so that you can display on the forum, whatever specific areas upon which you want to clarify for me and for others.
One quick question. I know that := means "assigned" but what does just the : stand for and what's it called?
Thank you,
The assigned statement is quite clear to me, for example:
x := 1
x := x+1
that would change the value of x by 1 every time the code was executed.
I do not understand the function of nor know the name of the stand alone ":".
Actually, there are lots of things that fall into that non-understanding, but let's start with it.
Thanks much,
x := 1
x := x+1
that would change the value of x by 1 every time the code was executed.
I do not understand the function of nor know the name of the stand alone ":".
Actually, there are lots of things that fall into that non-understanding, but let's start with it.
Thanks much,
For some reason, the message that I posted yesterday does not show. If it suddenly pops up and it appears that I double posted, please forgive me.
I understand the := assigned symbol (and know what it's called). i.e.
x:=10
If yes
Then x:=x+1
Else x:=x-1
With each execution of this, a yes response would increase the value of x by 1 while a no response would decrease it by 1. My expectation would be that there would be a minimum value of x that would stop the program.
It is actually the stand alone colon : that I don't know the name of nor the consistent purpose for.
Thank you,
I understand the := assigned symbol (and know what it's called). i.e.
x:=10
If yes
Then x:=x+1
Else x:=x-1
With each execution of this, a yes response would increase the value of x by 1 while a no response would decrease it by 1. My expectation would be that there would be a minimum value of x that would stop the program.
It is actually the stand alone colon : that I don't know the name of nor the consistent purpose for.
Thank you,
Perhaps I should have never brought up the colon since it seems to dominate the direction that this has taken us.
As for an I-110509, I haven't seen it.
And, yes I am printing and storing everything.
As for an I-110509, I haven't seen it.
And, yes I am printing and storing everything.
The silence is because I am studying through a book on Pascal as you suggested. It has really emphasized what you said about clarifying what one wants to do inside the program as early as one can, if not before even beginning the program. it's really been good for me because it lets me see how the base program should be organized. I'm about a third of the way through it and can certainly understand why you wanted me to dig into Pascal before jumping on to DCAL.
I'm still wanting to continue, but I want to make it worth your time invested, too.
I'm still wanting to continue, but I want to make it worth your time invested, too.
Who is online
Users browsing this forum: No registered users and 32 guests