Normal Topic Sesame using Xlookupall in Q&A? (Read 1162 times)
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Sesame using Xlookupall in Q&A?
Jul 26th, 2005 at 3:40pm
Print Post Print Post  
Is it at all possible to use Xlookupall in a Q&A database?  If not, is there any workaround?

Thanks!
Blair
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame using Xlookupall in Q&A?
Reply #1 - Jul 26th, 2005 at 3:57pm
Print Post Print Post  
Quote:
Is it at all possible to use Xlookupall in a Q&A database?

No.

Quote:
If not, is there any workaround?

Translate the .dtf file to Sesame.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame using Xlookupall in Q&A?
Reply #2 - Jul 26th, 2005 at 6:39pm
Print Post Print Post  
Sorry I was a bit terse there. Only the X commands that "read" as opposed to post, and were available in Q&A, support reading .dtf files.

One alternative you might consider, is using sesame as a "real time" translator by using the "-qa" startup switch and starting a copy of sesame from @Shell right before you call XLookupAll. That way, you can keep using the file in Q&A and Sesame will always get the latest data. Something like:

var aa as int
aa = @Shell("Sesame -qa MyFile.dtf")
XlookupAll("MyFile.db", ... etc...)
...
etc

Of course, this would only be okay if the .dtf file is relatively small, otherwise the translation time might be too long for everyday use.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Re: Sesame using Xlookupall in Q&A?
Reply #3 - Jul 26th, 2005 at 8:37pm
Print Post Print Post  
Hi Ray!

Not terse at all -- but your alternative may work, thanks!

I can't find anything in the user's manual or the programming guide about the -qa switch.  Where can I read up on this option?

Blair
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame using Xlookupall in Q&A?
Reply #4 - Jul 26th, 2005 at 8:48pm
Print Post Print Post  
Hi Blair,
I'm Mark - not Ray. I don't know where you can read up on the -qa switch other than the by using the "-help" startup switch:

Code
Select All
sesame -help 



It is intended for batch translations. Maybe someone from the tech writing team will chime in.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Re: Sesame using Xlookupall in Q&A?
Reply #5 - Jul 26th, 2005 at 8:57pm
Print Post Print Post  
Hi Mark (sorry about that).

I tried running it, and sesame just plain old didn't start up.  Is this likely because my database is too complex?

Blair
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame using Xlookupall in Q&A?
Reply #6 - Jul 26th, 2005 at 9:11pm
Print Post Print Post  
Could you be more specific? What exactly did you try? If you tried the "-qa" startup switch, Sesame's graphical user interface will not start up. This is intended as a command line utility to translate a series of .dtf files - so it has no user interface. It simply translates the file and leaves the resulting .db and .dat files in the same directory.

So, you should start a command line. Use CD to navigate to the directory where your .dtf files reside (back them up!) and then start Sesame with:

C:\Sesame\Program\sesame -qa YourFile.dtf

It will run for a while and then stop. If you do a "DIR" in that directory you will see two new files: a .db file and a .dat file, with the same file name as your .dtf file.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Re: Sesame using Xlookupall in Q&A?
Reply #7 - Jul 27th, 2005 at 1:14pm
Print Post Print Post  
Aha!  Found it.

It was a pretty complex database -- it took my P4 half an hour ...

I'm going to try to do my extract/export report in sesame based on this -- thanks Mark!
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged