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
 Import ASCII
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

joss31

France
33 Posts

Posted - 05/09/2014 :  04:22:13 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
(Labtalk Origin 6.1)
Hi everybody,

I don't know if that I want to creat is possible. I want to know if you can import ASCII with this way:

-You run your programme.
-It open the Dialog Box.
-You enter the name of the file you need; for exemple: result. The programme find the file, named result.
-After another dialog box is opening for asking how many ASCII files you want.
-And you enter for example 10 ASCII, 10 ASCII are selecting randomly in your file, result.

I find some command for get a string or get a number:
GetString(message)initialvalue[(dialog title)]
GetNumber[option](text1)variable1(text2)variable2[dialog title]
May be i can use it i don't know i really need somme help.
I don't know if it's possible with my version(6.1) but if it's possible with version 7, 7.5, 8.5, 9... I want to know.

Thank you for your attention.

Thank you in advance for you're reply.

Joss

Edited by - joss31 on 05/12/2014 04:55:18 AM

greg

USA
1378 Posts

Posted - 05/13/2014 :  12:58:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Starting with version 8 we added an X-Function (FindFiles) that can search a location for files using wildcards.

Just about any version of Origin allows for simple dialogs using "getn":

num = 10;
%B = name;
choice1 = 1;
choice2 = 0;
getn (Filename) %%B
(Number) num
(One Folder) choice1:2h
(Folders Follow Filenames) choice2:2
(Simple dialog);
Ty Using $(num) files of %B;
if(choice1==1)
ty Importing all into same folder;
else
{
if(choice2==1)
ty Renaming Folders to follow filenames;
else
ty Not renaming folders.;
}

Still a lot of programming required for what you want...
Go to Top of Page

joss31

France
33 Posts

Posted - 05/14/2014 :  03:01:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I know but may be I'll use a new version in a few weeks, I wait for licenses from my lab so thank's a lot greg.
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