Alpha Video Training
Results 1 to 3 of 3

Thread: Running global script

  1. #1
    Tony Santaniello
    Guest

    Default Running global script

    I am new to Alpha5v4.5 XBasic, but not new to programming (old VFP guy). Running script from Code Editor closes Alpha. WHY?? How can I run script, watch the trace window, and still have it open to modify? Thanks in advance.

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default RE: Running global script

    Running script from Code Editor closes Alpha. - Depends on the script. An error might shut down Alpha or the command A5.close() will. Not all scripts close Alpha.

    How can I run script, watch the trace window, and still have it open to modify? - You can't. You can use the script line debug(1) to turn on the debugger at a certain point and step through the script, view variable values, etc. The script is not open for editing while it is running.

  3. #3
    Tony Santaniello
    Guest

    Default RE: Running global script

    Thanks for the quick reply Stan. I think the END command shuts down Alpha in the script when it finishes. I tried commmenting it out, but the script ran, errored, and then finished closing Alpha. I've pretty much figured out how to code using this XBasic. I'll use the debug(1) and the interactive window for refining the code. Have a great day.

Similar Threads

  1. Error Running Script??
    By karlbeau in forum Alpha Five Version 5
    Replies: 10
    Last Post: 05-25-2005, 11:46 AM
  2. Global update running total
    By admin@dcitelecom.com in forum Alpha Five Version 5
    Replies: 3
    Last Post: 12-07-2004, 04:06 AM
  3. Function vs Global Script
    By dik_coleman in forum Alpha Five Version 5
    Replies: 2
    Last Post: 07-15-2004, 04:17 PM
  4. Converting Script to Global Function
    By Graham Wickens in forum Alpha Five Version 4
    Replies: 3
    Last Post: 11-12-2002, 07:28 AM
  5. End Global Script
    By Peter.Greulich in forum Alpha Five Version 4
    Replies: 3
    Last Post: 08-05-2001, 03:44 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
  •