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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 incorrect number of arguments passed to function

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000