Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Is there any method of importing Scripts into ScriptMaker via text files. I am creating scripts that are very repetitive and need a search & replace function to edit them in a timely manner.

Thanks,

Graham Sprague

quote:

Originally posted by spragueg:

Is there any method of importing Scripts into ScriptMaker via text files. I am creating scripts that are very repetitive and need a search & replace function to edit them in a timely manner.

Thanks,

Graham Sprague

FMP 5 allows you to import scripts from other files, but that is the best you can do.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Senior Filemaker Developer

http://www.database-resources.com

mailto:[email protected]

=-=-=-=-=-=-=-=-=-=-=-=-=

  • Author

Ok, so I can't import text scripts. Fine. How about simplifying my scripts. I have 30 fields all need to be setto a certain value using an if statement.

Is there a way to use one field to hold the name of another.

Then set a value to a field containing that name. Then I could write one script only and just set the name of the field before I run the script so it can be generic.

Follow?

Any one who can help?

Thanks,

Graham

quote:

Originally posted by spragueg:

Ok, so I can't import text scripts. Fine. How about simplifying my scripts. I have 30 fields all need to be setto a certain value using an if statement.

Is there a way to use one field to hold the name of another.

Then set a value to a field containing that name. Then I could write one script only and just set the name of the field before I run the script so it can be generic.


I would recommend the following:

Break your scripts up into as many pieces as possible. Then you can simply link those peices together into bigger scripts.

Put each of the SetFields into thier own script and such.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Senior Filemaker Developer

http://www.database-resources.com

mailto:[email protected]

=-=-=-=-=-=-=-=-=-=-=-=-=

  • Author

That's what I have done. My frustration lies in that it seems I can't define a variable within a script that defines the name of a field. So my question is still unanswered...

Is there a way to use one field to hold the name of another?

Can I then set a value to a field containing that name?

Any help would be great.

Thanks,

G

You could try this is your script:

Go to Field (the field whose name you want to capture)

Set Field (FieldCapture, Status(CurrentFieldName)

FieldCapture is just the name I used for the second field you'd need to make this happen.

If I read your post right that should accomplish what you want.

As always, I hope this helps.

[This message has been edited by WBlanchard (edited August 09, 2000).]

  • Author

The "Goto Field" step dosent alow you to specify the name of a field, only the field itself. Sothe following ...

Go to Field (the field whose name you want to capture)

...results in the intended variable field being the result returned.

I guess it can't be done.

Thanks anyway,

G

  • 2 weeks later...

You could use a loop and Go to Field next script steps... use the Status(CurrentFieldName) function to compare the current field to the one you want, looping through with Go to Field Next until you find it, then proceeding with the rest of the script.

Awkward perhaps, but it should work.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.