Results 1 to 3 of 3

Thread: Error Using

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Redwood City,Ca.,US

    Re: Error Using

    Have you tried using
    edit_set("Potential Units", "12");
    This does a replace.


  2. #2

    Re: Error Using

    User Alison Blanding (ablanding@teltronics.com) posted:

    What about using this:
    edit_set("Potential Units", "12");
    obj_type("Potenital Units", <kReturn>);

    Might that accomplish what you are trying for? HTH.

  3. #3
    Junior Member
    Join Date
    Apr 2001
    Orlando, FL, USA

    Error Using

    User (jramos@harcourt.com) posted:

    I'm trying to replace numerical text in an object (which is
    automatically populated by the application) with another number. It
    seems that the cursor sets before the number in the object and starts
    to type the new number right in front of the current number. This
    causes a major error.

    Here's how the script is written:

    edit_set_insert_pos("Potential Units", 0,0);
    edit_type("Potential Units", "12");
    obj_type("Potenital Units", <kReturn>)

    I would prefer to capture the number in the object, replace it, and
    then key a return. I replaced edit_set_insert_pos with
    edit_set_selection. It captures the number and does the replace, but
    the system still freezes up and reboots.

    Any suggestions would be appreciated.

    Many thanks and have a great weekend.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:43 PM.

Copyright BetaSoft Inc.