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.
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.
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.
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?
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!