Normal Topic Sesame.ini (Read 1477 times)
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Sesame.ini
Aug 23rd, 2007 at 2:02pm
Print Post Print Post  
Hello!

Please someone can say how can I write for each application a passande
Seame.ini file.

Thanks for your assistance in advance.

Dr. Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Sesame.ini
Reply #1 - Aug 23rd, 2007 at 2:37pm
Print Post Print Post  
Note: Assuming that "passande" means "default"

You can create an ini file for each application named for that app. Example: clients.ini

You can then add the ini file to a shortcut that starts that application using the -ini_file switch:
sesame -ini_file clients.ini Clients.db
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Sesame.ini
Reply #2 - Aug 23rd, 2007 at 2:51pm
Print Post Print Post  
Hello Erika,

I can only be astonished Erika: simply fast and effectively.
I can thank not enough!
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Don Newlin
Member
*
Offline


No personal text

Posts: 12
Location: Lloydminster, Ab, CA
Joined: Mar 3rd, 2003
Re: Sesame.ini
Reply #3 - Aug 23rd, 2007 at 5:40pm
Print Post Print Post  
Another method which our programmer, Joey, has implemented is to include the following code in application programming when the application first opens:

     
     var s as string = "c:\sesame2\sesamestandard.ini"
     var file as int

     
     // Create our ini file if it does not exist
     if( not fileExists(s) )
               {
           file = fileOpen(s)
           fileWriteLn(file, "TABLE ROW HEADER WIDTH: 1")
           fileClose(file)
     }

Don N.
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Sesame.ini
Reply #4 - Aug 24th, 2007 at 2:45am
Print Post Print Post  
[quote author=Don Newlin link=1187877776/0#3 date=1187890832]Another method which our programmer, Joey, has implemented is to include the following code in application programming when the application first opens:

     
     var s as string = "c:\sesame2\sesamestandard.ini"
     var file as int

     
     // Create our ini file if it does not exist
     if( not fileExists(s) )
               {
           file = fileOpen(s)
           fileWriteLn(file, "TABLE ROW HEADER WIDTH: 1")
           fileClose(file)
     }

Don N.[/quote]
I don't believe that the new INI file will be implemented in the current session of Sesame; only in the next session.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Don Newlin
Member
*
Offline


No personal text

Posts: 12
Location: Lloydminster, Ab, CA
Joined: Mar 3rd, 2003
Re: Sesame.ini
Reply #5 - Aug 24th, 2007 at 7:18pm
Print Post Print Post  
That is correct.  The ini file is created when you run the application the first time, and will be active for all future sessions.  In our case, that is easier than manually creating the file on each client computer, many of which are not in the same building.

Don N
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Sesame.ini
Reply #6 - Aug 24th, 2007 at 7:34pm
Print Post Print Post  
Quote:
That is correct.  The ini file is created when you run the application the first time, and will be active for all future sessions.  In our case, that is easier than manually creating the file on each client computer, many of which are not in the same building.


I'm not sure, but I think that Amor wanted a different ini file for different applications. Some ini file settings are application specific, such as startup form and button panels.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Don Newlin
Member
*
Offline


No personal text

Posts: 12
Location: Lloydminster, Ab, CA
Joined: Mar 3rd, 2003
Re: Sesame.ini
Reply #7 - Aug 24th, 2007 at 8:11pm
Print Post Print Post  
We use this same method to create custom ini files as well.
Modify the Path line:

var s as string = "c:\sesame2\sesameInvoices.ini"

Modify the lines written to the file for the items you wish to includel.

This will create a custom ini file for the application. We use a single network folder to store all our shortcuts for Sesame client sessions.  The shortcut must be modified to load the "sesameInvoices.ini" file  instead of "sesamestandard.ini"

  
Back to top
 
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Sesame.ini
Reply #8 - Aug 29th, 2007 at 9:03pm
Print Post Print Post  
Hello!
I want to start different Applications (different Sesame Sessions!) from one Menu Application. I think i need the apprprate ini file for different applications.The ini file settings are application specific !
Any Idee how to realise that?

Thanks.

Dr. Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Sesame.ini
Reply #9 - Aug 29th, 2007 at 9:28pm
Print Post Print Post  
Quote:
Hello!
I want to start different Applications (different Sesame Sessions!) from one Menu Application. I think i need the apprprate ini file for different applications.The ini file settings are application specific !


Try CreateAProcess() with command lines that specify the ini file as I mentioned in the second post in this thread.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged