Normal Topic Program text dump (Read 655 times)
olddog
Member
*
Offline



Posts: 35
Joined: Jan 19th, 2008
Program text dump
Jan 28th, 2009 at 10:35pm
Print Post Print Post  
Is there a way to dump all of the programming for an application out to a text file?
  

trying to learn a new trick
Back to top
 
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: Program text dump
Reply #1 - Jan 28th, 2009 at 11:31pm
Print Post Print Post  
Is this what you're looking for?  It's from page 46 in the Programming Guide.

Hope this helps.


Export/import programming to/from a file

You can export all of your programming in a Sesame database form to a standard text
file for review or editing with any text editor. These features are available on the File
menu of the Program Editor. With some programming already in the form, select
File/Export All to Text File. The Program Editor will display a Programming File dialog
box. Name the file, adding the “.pgm” extension, and click OK.
The file that is saved is a plain text file. When editing the file outside of Sesame, it is
important that you do not modify the heading line for each programming function:
** PROGRAMMING SECTION: [INVOICE #] [On Element Change] **
If @IsBlank(Invoice #)
{
Invoice # = @Number
}
These are the lines that start and end with **. They are the keys that tell Sesame
where to place the programming when you import the file.
Importing is done the same as exporting. From the Program Editor's File Menu, select
File/Import from text file. The same dialog will display showing all files with a “.pgm”
extension. If you gave your file a different extension, drop down the Show window and
change it to display All Files.

Note: When you import a file into to the Program Editor, any element listed in the
imported file will overwrite any programming for that element in the editor. Any
existing programming in an element/event programming slot in the editor which is not
addressed in the imported file will remain unchanged.

  
Back to top
IP Logged
 
olddog
Member
*
Offline



Posts: 35
Joined: Jan 19th, 2008
Re: Program text dump
Reply #2 - Jan 29th, 2009 at 12:32am
Print Post Print Post  
I had come across that after I had posted my question (I was searching through the manual for something else) and gave it a try.  It, however, is not quite what I was looking for.  It only dumps for the current form.  I was hoping to be able to dump the entire application.
  

trying to learn a new trick
Back to top
 
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: Program text dump
Reply #3 - Jan 29th, 2009 at 12:38pm
Print Post Print Post  
olddog,  I just tried this procedure again this morning and it dumped the entire app. which was several pages, without trouble.

My procedure is:

From Program Editor:

File
Export all to text file
Give it a name in "File Name" at the bottom
Click Ok


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


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Program text dump
Reply #4 - Jan 29th, 2009 at 12:51pm
Print Post Print Post  
tcgeo,

That will export an entire form, but if you have multiple forms/reports, the programming for each must be exported individually.
  

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



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: Program text dump
Reply #5 - Jan 29th, 2009 at 1:06pm
Print Post Print Post  
Sorry olddog it looks like I didn't look close enough at this.

And I thought I was starting to catch on!

Thanks for the correction Erika.
  
Back to top
IP Logged