How to get input from simple RUNTIME program?
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
4 posts
• Page 1 of 1
How to get input from simple RUNTIME program?
Greetings.
I'm trying some ideas with the RUNTIME option for creating a Dyalog APL .EXE program.
I'm using Dyalog APL v15 (but could use a newer version if needed)
I wanted to try to run a runtime.exe with a simple APL program using the APL console.
However, for some reason ... the keyboard does not work ... and I can not type anything when the program hits the quote-quad input line.
Why would this prevent simple keyboard entry during a runtime.exe?
Perhaps RUNTIME does not allow input from either ⎕ nor ⍞ ?
Thanks!
I'm trying some ideas with the RUNTIME option for creating a Dyalog APL .EXE program.
I'm using Dyalog APL v15 (but could use a newer version if needed)
I wanted to try to run a runtime.exe with a simple APL program using the APL console.
However, for some reason ... the keyboard does not work ... and I can not type anything when the program hits the quote-quad input line.
Why would this prevent simple keyboard entry during a runtime.exe?
- Code: Select all
∇GO
'Hello!'
'What is your name?'
N←⍞
'Greetings ',N,'!'
'How are you today?'
R←⎕DL 5
∇
Perhaps RUNTIME does not allow input from either ⎕ nor ⍞ ?
Thanks!
-
woody - Posts: 144
- Joined: Tue Dec 28, 2010 12:54 am
- Location: Atlanta, Georgia USA
Re: How to get input from simple RUNTIME program?
Hi Woody,
I think this is a bug so I have logged it as 16971.
Regards,
Vince
I think this is a bug so I have logged it as 16971.
Regards,
Vince
- Vince|Dyalog
- Posts: 414
- Joined: Wed Oct 01, 2008 9:39 am
Re: How to get input from simple RUNTIME program?
Hi Woody,
Is there a reason why you cannot use a little GUI program for this?
Regards,
Vince
Is there a reason why you cannot use a little GUI program for this?
Regards,
Vince
- Vince|Dyalog
- Posts: 414
- Joined: Wed Oct 01, 2008 9:39 am
Re: How to get input from simple RUNTIME program?
Thanks for the reply!
I was just exploring that was possible with RUNTIME.exe.
The ⍞ input using console would be easier to teach to "newbies".
Yes... I wrote a GUI version ... but it was tricky for me as a GUI newbie to figure out how to stop and continue APL program flow using the ⎕NQ .. but I got it to work.
Cheers
I was just exploring that was possible with RUNTIME.exe.
The ⍞ input using console would be easier to teach to "newbies".
Yes... I wrote a GUI version ... but it was tricky for me as a GUI newbie to figure out how to stop and continue APL program flow using the ⎕NQ .. but I got it to work.
- Code: Select all
GOAPL
⍝ Test of APL program flow with ⎕WC windows input control
OUTPUT'Hello!'
OUTPUT'What is your name?'
N←INPUT
→(0=⍴_Return)/END
OUTPUT'Greetings ',N,'!',CR
OUTPUT'Have a nice day.'
TOP:
OUTPUT''
OUTPUT'Please enter some WHOLE numbers ...'
N←INPUT
→(~∧/(∆ENLIST N)∊' ',⎕D)/ERR
→(0=⍴_Return)/END
N←∆ENLIST N
N←(N∊' ',⎕D)/N
OUTPUT'The TOTAL is: ',⍕+/1↓⍎'0 ',∆ENLIST N
OUTPUT'======= END OF APP ========'
N←INPUT
→END
ERR:
OUTPUT'oooh .. not valid ...'
OUTPUT'Please try again...'
→TOP
END:
'Done'
Cheers
-
woody - Posts: 144
- Joined: Tue Dec 28, 2010 12:54 am
- Location: Atlanta, Georgia USA
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group