The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 incorrect number of arguments passed to function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ben_at_work

Germany
Posts

Posted - 10/03/2006 :  11:38:11 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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???

Mike Buess

USA
3037 Posts

Posted - 10/03/2006 :  12:42:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

ben_at_work

Germany
Posts

Posted - 10/03/2006 :  1:32:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

ben_at_work

Germany
Posts

Posted - 10/03/2006 :  1:32:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000