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
 Forum for Origin C
 "Open Multiple Files-Box"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ulrich.kun1

Germany
9 Posts

Posted - 05/05/2003 :  06:48:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic

Hey! Im glad about the new function "GetOpenBox()" but I would like to have the Box for opening multiple Files like "getfile -m *.*" in LabTalk. Glad for answers,

Bye Thommy

Mike Buess

USA
3037 Posts

Posted - 05/05/2003 :  07:48:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can access LabTalk object properties from Origin C as LabTalk.ObjectName.Property and call LabTalk object methods with LabTalk.ObjectName.Method(). LabTalk's fdlog object has a multiOpen() method which is more flexible than "getfile -m". I haven't used it in Origin C myself, but it might be worth trying.

And there's always LT_execute("getfile -m *.*");

Mike Buess
Origin WebRing Member
Go to Top of Page

rlewis

Canada
253 Posts

Posted - 05/09/2003 :  12:54:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I've used the LabTalk FDLOG object in OriginC and found it quite usefull. For example ...

bool Read_Files(void)
{
if (FDLOG_LT_init())
{
LabTalk.FDLOG.numTypes=1;
LabTalk.FDLOG.type1$="[Perkin Elmer DSC-2C Binary]*.DA";
LabTalk.FDLOG.Dlgname$="Select one or more PETOS DSC-2C binary Files";
if (LabTalk.FDLOG.multiopen()==0)
{
for (int i=1;i<=LabTalk.FDLOG.multiopen.count;i++)
{
LabTalk.FDLOG.get("V",i);
char PathToFile[MAXFULLPATH];
LT_get_str("%V",PathToFile,MAXFULLPATH);
/*
PathToFile now contains the full path to the file
Do something with PathToFile ....
*/
}
return (true);
}
}
return (false);
}

bool FDLOG_LT_init(void)
{
// Adapted from the init section of FILE.OGS
LabTalk.FDLOG.Reset();
LabTalk.FDLOG.DlgName$="";
LabTalk.FDLOG.OptionDLG$="";
LabTalk.FDLOG.checkname$="";
LabTalk.FDLOG.ShowComment=0;
LabTalk.FDLOG.CheckStatus=0;
LabTalk.FDLOG.default$="";
LabTalk.FDLOG.MultiOpen.ComboName$="";
if(LabTalk.FDLOG.MultiOpen.ComboSel<1 || LabTalk.FDLOG.MultiOpen.ComboSel>3)
LabTalk.FDLOG.MultiOpen.ComboSel = 2;
return (true);
}
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