Alpha Video Training
Results 1 to 2 of 2

Thread: Save variables and their current values to file for inspection

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

    Default Save variables and their current values to file for inspection

    Prompted by an earlier thread dealing with shared variables.

    Usage like

    save_var_info(global_variables(),"c:\temp\globals.txt")

    Code:
    FUNCTION save_var_info AS L (scope AS P, output_filename AS C )
    	save_var_info = .F.
    	vars = a5_list_user_vars(scope)
    	ln = ""
    	for each foo in vars
    		ln = ln + foo.value+crlf()+eval(foo.value)+crlf()
    	next
    	save_to_file(ln,output_filename,.F.)
    	save_var_info = .T.
    END FUNCTION
    There can be only one.

  2. #2
    "Certified" Alphaholic Ray in Capetown's Avatar
    Real Name
    Ray Hendler
    Join Date
    Jan 2009
    Location
    South Africa
    Posts
    2,036

    Default Re: Save variables and their current values to file for inspection

    That's definitely going to have its uses. We used to call that a memory dump.
    Re-assigning can be useful too.

Similar Threads

  1. Forensic change information? How can I save a list of old values = new values on save
    By perry99 in forum Application Server Version 11 - Web/Browser Applications
    Replies: 4
    Last Post: 03-16-2012, 04:28 PM
  2. Please Help! Create a button to save current record
    By thebowie in forum Application Server Version 10 - Web/Browser Applications
    Replies: 12
    Last Post: 10-03-2010, 01:22 PM
  3. How do I save and return to current record
    By thebowie in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 05-25-2010, 03:36 PM
  4. How to Copy values of current record
    By John Panagia in forum Alpha Five Version 5
    Replies: 15
    Last Post: 05-19-2003, 05:29 PM
  5. Keeping Current Record Values
    By forskare in forum Alpha Five Version 4
    Replies: 3
    Last Post: 07-15-2002, 06:37 AM

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
  •