IMHO it is never appropriate to use copy paste in a script step.
Stephen mentioned one reason.
Due to the reason Stephen mentioned scripts that do not use Copy/
Paste have a tendency to be simpler than those that do use copy/paste
Another reason is that the clipboard should never be used by anyone
but the user since there is a certain possibility that the user
overwrites the applications data and/or vice versa.
I have some old solutions that I created years back from FM II and up.
Every time I service one of these solutions I clean out as many copy/
paste script steps as possible to make the solutions more stable and
minimize the risk of data being overwritten
Hans
On 22.2.2007, at 21:11, Stephen Wonfor wrote:
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