T O P I C R E V I E W |
ben_at_work |
Posted - 10/03/2006 : 11:38:11 AM Origin Version (Select Help-->About Origin): 70 Operating System: win2000
Hello.
New problem:
I want to give a string created by a OriginC C-file to a string in labtalk. That means I have the function givepath(%D) which takes the string %D created in Labtalk. givepath should return a new %D. But when I want to test the value of %D, Labtalk says "incorrect number of arguments passed to function".
What does that mean? Does it refer to the c-routine or to the value which is created by the routine...?
And if I were able to transfer the path I found in the c-routine to labtalk, how could I import an ASCII file in a new worksheet from that path???
|
3 L A T E S T R E P L I E S (Newest First) |
ben_at_work |
Posted - 10/03/2006 : 1:32:15 PM Hello Mike.
I found the Problem. It works when I add the dollar $:
%D = givepath()$;
I had forgotten it. Now I get the string created with the C-routine into Labtalk.
Nevertheless I am always pretty glad about your help.
Thank you.
|
ben_at_work |
Posted - 10/03/2006 : 1:32:11 PM Hello Mike.
I found the Problem. It works when I add the dollar $:
%D = givepath()$;
I had forgotten it. Now I get the string created with the C-routine into Labtalk.
Nevertheless I am always pretty glad about your help.
Thank you.
|
Mike Buess |
Posted - 10/03/2006 : 12:42:05 PM It refers to the c-function which which is defined with one argument. Possibly the path contains a comma so path is interpreted as two string arguments. Should work if you quote the path... givepath("%D").
Mike Buess Origin WebRing Member |