Post Reply 
MOD, ODD() in Program
03-25-2014, 02:21 PM (This post was last modified: 03-25-2014 02:22 PM by Angus.)
Post: #1
MOD, ODD() in Program
hi!

I'm struggling with a program and need help from the forum. Current Problem is a piece of code like that:

Code:

EXPORT FILT(N,L)
BEGIN
  IF (N MOD 2) = 1 THEN 
    MSGBOX("Odd Core Length required.");
    RETURN "";
  END;
  (...)

My Questions are:
- how would I check Integer Operations like ODD(), MOD,.. for an Input Variable? I get an "Error:Bad Argument Value". Maybe a real to integer cast would do the job. Is that possible?
- Is Typing of Input Variables and local Variables free to choose or do I have to stick to some nomenclature like with home/cas Variables and Command Variants? That is a big issue which still confuses me. Must admit that.
- When I start a program via Shift+Program instead of Toolbox/User I get a dialog with the program's Parameters. Is that totally equal to the toolbox launch? I mean there are no data left in any Variable after the program finishes independent of how I started the program?

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


Messages In This Thread
MOD, ODD() in Program - Angus - 03-25-2014 02:21 PM
RE: MOD, ODD() in Program - Han - 03-25-2014, 03:37 PM
RE: MOD, ODD() in Program - Angus - 03-26-2014, 10:33 AM
RE: MOD, ODD() in Program - Han - 03-26-2014, 03:55 PM
RE: MOD, ODD() in Program - Angus - 03-26-2014, 04:02 PM
RE: MOD, ODD() in Program - Han - 03-27-2014, 01:10 AM
RE: MOD, ODD() in Program - Angus - 03-27-2014, 08:21 AM
RE: MOD, ODD() in Program - Han - 03-27-2014, 03:24 PM
RE: MOD, ODD() in Program - Angus - 03-27-2014, 05:02 PM
RE: MOD, ODD() in Program - Han - 03-27-2014, 05:13 PM



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