Post Reply 
Dealing with Integers on the Prime. (SOLVED!)
04-13-2015, 05:23 AM (This post was last modified: 04-14-2015 10:18 PM by Spybot.)
Post: #1
Dealing with Integers on the Prime. (SOLVED!)
Hi Everyone!

My question is... How do I control a program to accept only positive integers as input arguments? (I hope it is possible!).
The following code accepts pretty much anything(integers,fraction, floating etc...). So, looking for more information about types of objects in the Prime, we all know the TYPE command, which says that [0] are reals, and [1] are integers. So that's how I assume they are consolidated internally, Am I wrong?

EXPORT test1()
BEGIN
LOCAL var;
INPUT(var,[1],"Title","Label","Enter an Integer.");
MSGBOX(var);
END;

Why it is accepting any kind of input?


Thank you.

   

Spybot.

Spybot.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Dealing with Integers on the Prime. (SOLVED!) - Spybot - 04-13-2015 05:23 AM



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