Skip 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.

Copy Paste bug in FMP6?

Featured Replies

  • Newbies

Hi, I've created this script but is giving some trouble and I can't understand why. I'm using global fields to temporarily store other fields data. Kind of a clipboard for several fields. This is the script.

Copy(Select, "Field1")

Paste(Select, "GlobalField1")

Copy(Select, "Field2")

Paste(Select, "GlobalField2")...

Then I have another script that does the opposite.

Copy(Select, "GlobalField1")

Paste(Select, "Field1")...

It works well when on Browse mode, it goes totally crazy in Find mode. Any ideas why and how can I fix this?

  • Author
  • Newbies

I guess I just found out that when in Find mode, the Copy (to clipboard) function doesn't work, but the Paste (from clipboard) does.

Again, I need a fix, is this a FMPro 6.4 bug, any workarounds?

Use Set Field rather than Copy/Paste. It's much more efficient and less prone to problems.

Edit: Also keep in mind when you go intol find mode all fields are cleared of data except global fields. Just a heads up you can't copy something that isn't there.

Michael

Edited by Guest
Added last paragraph.

Indeed it's expected behaviour ...AudioFreak doesn't touch that it's actually a bad habit to tamper with the users clipboard from a software solution, and it's common newbe blunder to commit.

Further more is the command a little limited in it's reach, since only visible fields can be copied, and since this is a database is it a vessel of meaning, meaning that you easily can disguise or illiminate the nice to knows from the need to knows of your layouts.

Set Field is the only propper way to change values in fields, while lookups might have their uses, is it only under 2NF where filemakers unstored calcfields exhibit inconveinces can lead to the denormalization a lookup in reality is, or the saving of historic data.

--sd

Just to clarify:

Instead of these two steps:

Copy(Select, "Field1")

Paste(Select, "GlobalField1")

Use this one step:

Set Field(GlobalField1, Field1)

One exception where you can't use Set Field is when you want to do a Find for a date range, e.g. "1/1/01...2/2/02". It will cause field validation to fail. I'd still avoid copy and paste and use Insert instead.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.