Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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...