Alpha Video Training
Results 1 to 6 of 6

Thread: Alpha 5 Restart & Script Edit Restore

  1. #1
    VAR csda1's Avatar
    Real Name
    Ira J Perlow
    Join Date
    Apr 2000
    Location
    Boston, Massachusetts, USA
    Posts
    3,530

    Default Alpha 5 Restart & Script Edit Restore

    Sometimes (OK, a lot of times!!), there comes a point where you are working on difficult code editing, and you must constantly restart A5 to test. Then you have to reopen all the scripts you were editing so that you may continue on your code. Those who have worked with DECLARESTRUCT and DECLARE definitely know what I'm talking about!:)

    Anyway, while not perfect, I created A5 code to remember the scripts currently being edited, then close A5, restart A5 and then open the scripts (and UDF's) again to continue editing.

    I hope you find it useful for your development process. (It saves me hours of restarting). The link is

    Alpha 5 Script Edit Restore
    Regards,

    Ira J. Perlow
    Computer Systems Design


    CSDA A5 Products
    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
    CSDA Barcode Functions

    CSDA Code Utility
    CSDA Screen Capture



  2. #2
    VAR csda1's Avatar
    Real Name
    Ira J Perlow
    Join Date
    Apr 2000
    Location
    Boston, Massachusetts, USA
    Posts
    3,530

    Default Newer Version of ScriptEditRestore()

    I have since updated the ScriptEditRestore() script to be much cleaner and simpler. You no longer need to modify the autoexec script and it automatically creates the support script. To download it, just clcik below:
    Regards,

    Ira J. Perlow
    Computer Systems Design


    CSDA A5 Products
    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
    CSDA Barcode Functions

    CSDA Code Utility
    CSDA Screen Capture



  3. #3
    VAR csda1's Avatar
    Real Name
    Ira J Perlow
    Join Date
    Apr 2000
    Location
    Boston, Massachusetts, USA
    Posts
    3,530

    Default New Version restores cursor too!

    This newest version now restores the cursor of the last code editor tab, saving even more time. If you develop in A5 XBasic code, you should be running this code. The link to the code is Alpha 5 Script Edit Restore

    Script Edit Restore Version History:
    05/18/2006 Last Code Editor tab is now the last script being edited (i.e. the selected code editor tab) and cursor is placed in the same location before restart

    05/12/2006 Add Controlpanel show in case it's not showing

    05/11/2006 Added auto-creation of "___" script, eliminated need for autoexec script modification

    04/16/2006 Initial version

    Comments appreciated if you find this useful and if you find any anamolies.
    Regards,

    Ira J. Perlow
    Computer Systems Design


    CSDA A5 Products
    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
    CSDA Barcode Functions

    CSDA Code Utility
    CSDA Screen Capture



  4. #4
    VAR csda1's Avatar
    Real Name
    Ira J Perlow
    Join Date
    Apr 2000
    Location
    Boston, Massachusetts, USA
    Posts
    3,530

    Default

    I improved timing a small bit in the restart sequence of A5.

    The link to the code is Alpha 5 Script Edit Restore

    Script Edit Restore Version History:
    05/21/2006 Improved timing a bit for restart and close of A5

    05/18/2006 Last Code Editor tab is now the last script being edited (i.e. the selected code editor tab) and cursor is placed in the same location before restart

    05/12/2006 Add Controlpanel show in case it's not showing

    05/11/2006 Added auto-creation of "___" script, eliminated need for autoexec script modification

    04/16/2006 Initial version
    Regards,

    Ira J. Perlow
    Computer Systems Design


    CSDA A5 Products
    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
    CSDA Barcode Functions

    CSDA Code Utility
    CSDA Screen Capture



  5. #5
    VAR csda1's Avatar
    Real Name
    Ira J Perlow
    Join Date
    Apr 2000
    Location
    Boston, Massachusetts, USA
    Posts
    3,530

    Default

    I improved a timing issue in the database exit event that was not saving the current scripts being edited.

    The link to the code is Alpha 5 Script Edit Restore

    Script Edit Restore Version History:
    05/30/2006 Fixed timing of database exit event to save current scripts

    05/21/2006 Improved timing a bit for restart and close of A5

    05/18/2006 Last Code Editor tab is now the last script being edited (i.e. the selected code editor tab) and cursor is placed in the same location before restart

    05/12/2006 Add Controlpanel show in case it's not showing

    05/11/2006 Added auto-creation of "___" script, eliminated need for autoexec script modification

    04/16/2006 Initial version
    Regards,

    Ira J. Perlow
    Computer Systems Design


    CSDA A5 Products
    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
    CSDA Barcode Functions

    CSDA Code Utility
    CSDA Screen Capture



  6. #6
    VAR csda1's Avatar
    Real Name
    Ira J Perlow
    Join Date
    Apr 2000
    Location
    Boston, Massachusetts, USA
    Posts
    3,530

    Default

    Yet another improved version that more reliably saves the opened script information, particularly if you close the A5 program itself.

    BUT I HAVE NOT RECIEVED ANY BUG REPORTS FROM ANYONE!
    IS ANYONE ACTUALLY USING THIS AND FINDING IT USEFUL, OR
    IS THERE A PROBLEM WITH INFORMATION ON HOW TO USE IT?


    The link to the code is Alpha 5 Script Edit Restore

    Script Edit Restore Version History:
    06/02/2006 Changed code to save current scripts on can exit
    Stopped redundant event creation,
    Fixed bug with no scripts opened

    05/30/2006 Fixed timing of database exit event to save current scripts

    05/21/2006 Improved timing a bit for restart and close of A5

    05/18/2006 Last Code Editor tab is now the last script being edited (i.e. the selected code editor tab) and cursor is placed in the same location before restart

    05/12/2006 Add Controlpanel show in case it's not showing

    05/11/2006 Added auto-creation of "___" script, eliminated need for autoexec script modification

    04/16/2006 Initial version
    Regards,

    Ira J. Perlow
    Computer Systems Design


    CSDA A5 Products
    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
    CSDA Barcode Functions

    CSDA Code Utility
    CSDA Screen Capture



Similar Threads

  1. How to include own code for ADD,EDIT & DELETE
    By Jon Lau in forum Web Application Server v6
    Replies: 3
    Last Post: 04-18-2005, 05:03 AM
  2. Ability to edit the Script Editor toolbar
    By CALocklin in forum Archived Wishlist
    Replies: 1
    Last Post: 11-29-2004, 05:42 PM
  3. Date dialog script & report script won't combi
    By rbierman@iowbar.org in forum Alpha Five Version 5
    Replies: 6
    Last Post: 12-07-2003, 08:40 AM
  4. script edit solution??
    By Andy Neufell in forum Alpha Five Version 1
    Replies: 1
    Last Post: 03-20-2003, 04:28 AM
  5. Backup & restore
    By Gil Smith in forum Alpha Five Version 5
    Replies: 0
    Last Post: 09-09-2002, 12:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •