Post Reply 
using diff() in a program
05-08-2016, 08:47 PM
Post: #6
RE: using diff() in a program
Thank you,
But I still have an issue,
in fact the expression comes from an input.
in that case, I saw that I must use a very strange INPUT syntax {{var,[2]}} in someone else post.

but when I do that :
Code:

EXPORT ABCD()
 BEGIN
 LOCAL a;
 INPUT({{a,[2]}});
 PRINT(diff(a,X));
 END;
I got Error: Bad Argument Type

my a var is supposed to be a string, like F9 in DrD code ?

I don't get the logic here...



Also INPUT builtin help is incomplete and wrong.

syntax : INPUT(var,...) *1st form syntax
and
var -> { var_name, [allowed_type_matrix] ... } *2nd form of var definition.

according this, I should be able to type INPUT({var_name},[types]})
but it gives an error ! I must type INPUT({{var_name, [types]}})

also, help is not complete, where is the list of types ? how can we guess ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
using diff() in a program - hpfx - 05-08-2016, 09:18 AM
RE: using diff() in a program - roadrunner - 05-08-2016, 11:15 AM
RE: using diff() in a program - jrozsas - 05-08-2016, 01:13 PM
RE: using diff() in a program - roadrunner - 05-08-2016, 11:56 PM
RE: using diff() in a program - jrozsas - 05-09-2016, 12:52 PM
RE: using diff() in a program - informach - 05-08-2016, 02:13 PM
RE: using diff() in a program - DrD - 05-08-2016, 03:03 PM
RE: using diff() in a program - hpfx - 05-08-2016 08:47 PM
RE: using diff() in a program - DrD - 05-08-2016, 09:46 PM
RE: using diff() in a program - informach - 05-09-2016, 12:14 AM
RE: using diff() in a program - roadrunner - 05-09-2016, 01:05 PM
RE: using diff() in a program - leprechaun - 05-10-2016, 09:56 AM



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