I believe if what you are copying is empty, it will not write over the existing clipboard, and you will end up pasting the previous clipboard value, as you experienced. There are a few obscure reasons for Copy&Paste, but they are rare and can most can be worked around (preserving text formatting, concatenating a date range in find mode in a date field, setting a container field to a print preview page are a few).

In general, if the two fields are not related to each other:
Filemaker 6 or earlier: use a global field to get Field1, then set Field2 to the global. Filemaker 7 or later: use a variable to get Field1, then set Field2 to the variable.

If the fields are related (in the same table or a relationship linking the two records), use Set Field to directly set Field2 from Field1.

On Feb 22, 2007, at 2:14 PM, Nicholas Geti wrote:

The fields were on the current layout.


----- Original Message ----- From: "Stephen Wonfor" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, February 22, 2007 4:11 PM
Subject: Re: When to use COPY/PASTE commands


One thing to check is that the fields you COPY and PASTE to are on the layout in question.
On Feb 22, 2007, at 2:05 PM, Nicholas Geti wrote:
When is it appropriate to use the COPY and PASTE script steps? I have inherited a program that uses these two statements so I tried to use them for more than one field and it didn't work. The first COPY stored its value in the clipboard and then after issuing a PASTE I did another COPY and PASTE but the result was the value of the first statement.

Maybe I did something wrong but if so, I don't understand these two statements.


.............
"Common sense and a sense of humor are the same thing, moving at different speeds. A sense of humor is just common sense, dancing." --- William James



Jim Main
-------------------------------------------
619-948-5293
[EMAIL PROTECTED]
-------------------------------------------

Reply via email to