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
 Origin Forum
 impASC Error

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
gleeblejim Posted - 11/30/2011 : 09:15:40 AM
Good Morning/Afternoon/Evening!

I've been developing a new opx for my company and whenever I import data through the Menu Item my opx makes, I get the following error:


impASC:X-Function failed to execute!
Bad argument, menu:=Stuff\Trial
Allowed Values are:
single, multiple


The odd thing is that if I import the same file on my desktop it imports perfectly. I only get the message above when I'm importing something out of folders. Also if I do File->Import->Single ASCII both import just fine.
4   L A T E S T    R E P L I E S    (Newest First)
gleeblejim Posted - 12/05/2011 : 11:14:17 AM
Learned that when using impasc %1, if you have a space in the file name or folder name, then it will create a new string at every space causing the error. if you use impasc "%1", then it will work. Learned this from Originlabs great customer service!

gleeblejim Posted - 12/01/2011 : 11:56:47 AM
yeah the "menu:=Stuff\Trial" was taken from the folder location. It wasn't in the script. It looks like my issue goes back to my other post "impasc vs. open -w". I didn't have this issue with open -w, but it wouldn't see the long names. I'm not using impasc which is working great minus seeing errors like I listed. The Bad Argument Error changes depending on what someone named their folders as. Suggestions?
gleeblejim Posted - 12/01/2011 : 06:41:38 AM
Thanks CP. I'll double check but I think that line isn't in my code. That's part of the folder location. The folder is on my desktop. It's Desktop -> Smorigin Stuff\Trial Data\ and then the data. But when I have the data files directly on my desktop it doesn't give me any issues.
cpyang Posted - 11/30/2011 : 4:13:35 PM
You should remove "menu:=Stuff\Trial" from the script. That option is only for controlling how the XF appears in menu, should not be used in code at all.

CP

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