Alpha Video Training
Results 1 to 2 of 2

Thread: previous object value

  1. #1
    Member
    Real Name
    Bob Kenworthy
    Join Date
    Apr 2000
    Posts
    324

    Default previous object value

    when I push this button It inserts the variable VNAME1. is it possible to read the value of the previous object in case it already contains VNAME1?

    dim previous_object_Name as c
    previous_object_name = topparent.Active_Prev()
    eval(previous_object_Name+".value")=Var->vname1
    evaluate_template(previous_object_Name+".activate()")
    topparent.next()

    thank you everyone!
    Bob

  2. #2
    Member
    Real Name
    Bob Kenworthy
    Join Date
    Apr 2000
    Posts
    324

    Default Re: previous object value

    i got this to work
    'Activate the Object that Previously had focus.
    dim previous_object_Name as c
    previous_object_name = topparent.Active_Prev()
    if previous_object_name <> "" then
    dim previous_object as p
    previous_object = obj(Previous_object_name)
    previous_object.activate()
    end if

    DIM SHARED x AS c
    x = eval(previous_object_name+".value")

Similar Threads

  1. xbasic previous object
    By bobsk in forum Alpha Five Version 8
    Replies: 13
    Last Post: 09-09-2007, 01:32 PM
  2. Does object.enable now activate the object
    By David Montgomery in forum Alpha Five Version 8
    Replies: 2
    Last Post: 07-27-2007, 05:32 PM
  3. Tabbed Object vs. Conditional Object
    By Tom Cone Jr in forum Alpha Five Version 6
    Replies: 26
    Last Post: 02-28-2005, 10:23 AM
  4. Previous value
    By johngt in forum Alpha Five Version 6
    Replies: 17
    Last Post: 02-27-2005, 07:12 AM
  5. Can A5 get the name of the previous focus object?
    By csda1 in forum Alpha Five Version 4
    Replies: 2
    Last Post: 04-10-2000, 08:53 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
  •