Jump to content

ryangrg

Members
  • Posts

    59
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by ryangrg

  1. An option to point a script at a field via calculation much like the SetFeildByName ( ) script.
  2. A script trigger that executes before entering a field.
  3. Ok, I swear this was working last night. Maybe I should have went to sleep earlier. And I'm not sure what I was thinking with the evaluate their. Also for some reason I thought the Goto Object script step would take me to a field by its table name that I didn't have named as an object - working after you've been working leads to interpreting things wrong. All right who really inserts find operators anyway. If you use them frequently you memorize them. One last hope here maybe I'm missing this so heres the question. Is there a way to Goto Field by Name like Set Field by Name?
  4. Thanks for posting insertvalue.fp7 that really helped getting a handle on inserting data - I was using a replace function with the GetFeildByName script step . I've attached a file of what I've done. I bundled $$Start, $$end, and active field data into one variable array and used Goto Object to limit this to one script for multiple fields. Also used a button to capture field and cursor position to limit the need to attach a scrip trigger to all fields on the layout and stuck with a value list on the field. Still needs some tightening up but wanted to get something posted. Thanks. On a final note Is it possible to get a fields pop up to activate via script? ExampleOperator.fp7.zip
  5. I wanted to make a pop-up menu work that inserted a selected operator into the stored location and since it is not possible to make a pop-up menu appear when it is scripted to via Goto Field script step I tried this crazy work around - also realized that changing cursor position with mouse while field is active gave an empty value so that killed this idea too. I settled for a value list, used a button and everything works snappy and looks nice - also no script triggers are needed on fields from which cursor position is desired. My purpose was to mimic the insert find operator that is available in find mode for a custom navigation bar. I am still curious -but not urgently - about the behavior of the Get ( ActiveSelectionStart ) while the global variable is capturing data via OnObjectKeystroke script trigger.
  6. Here is a sample file. Select and type something in the field and watch the $$CursorPosition in the data viewer change as describe. Script is triggered by OnObjectEnter ( to capture initial position) and OnObjectKeystroke (to capture change in position). I think I may need to use the Get(TriggerModifierKeys) with case logic to get the functionality I want. I'll post whatever I come up with if someone doesn't suggest something better first. Example.fp7.zip
  7. I have a script that attempts to set a global variable to the value of the fields current cursor position via an OnObjectEneter and OnObjectKeyStroke script trigger. The global variable is set with the Get ( ActiveSelectionStart ) function in a one line script using Set Variable script step. I am getting problems arising that I do not understand the root of. When entering the empty field the variable returns 1, which is ok, then after entering one character the variable still returns 1. Furthermore if I move the cursor back a position the variable returns 2 when the cursor is position 1.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.