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
 Import ASCII

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
joss31 Posted - 05/09/2014 : 04:22:13 AM
(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
2   L A T E S T    R E P L I E S    (Newest First)
joss31 Posted - 05/14/2014 : 03:01:42 AM
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.
greg Posted - 05/13/2014 : 12:58:54 PM
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...

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