Copy field values

If you need help on how to use the program
Post Reply
t88
Posts: 10
Joined: 2006-07-13 16:09:19

Copy field values

Post by t88 »

hi :)
I have another question......
I used a field to write my box number.. but now i would like to move all values in another free field.....
can somebody write me the script to make it ?

thank you very much

PS: where can i see a list af all field names?
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

To move values from field A to field B :

Code: Select all

program NewScript;
begin
  SetField(fieldB, GetField(fieldA));
  SetField(fieldA, '');
end.
The list of fields name is in the help file ;)
t88
Posts: 10
Joined: 2006-07-13 16:09:19

Post by t88 »

thank you ;)
t88
Posts: 10
Joined: 2006-07-13 16:09:19

Post by t88 »

this program is wonderful!!!!!
many compliments!
Melmoth
Posts: 32
Joined: 2006-08-21 21:40:11

How to insert other text?

Post by Melmoth »

Hi there, that's exactly what I've been looking for as well... But how can I insert other text (not from another field) with this script - if it's possible at all...

Thanks in advance!
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Code: Select all

SetField(fieldName, 'your new text');
You can put any text string between quotes '...'
If you need to put a quote inside it, put two of them:

Code: Select all

SetField(fieldName, 'it''s easy');
For linebreaks:

Code: Select all

SetField(fieldName, 'line 1' + #13#10 + 'line 2');
Melmoth
Posts: 32
Joined: 2006-08-21 21:40:11

Thanks!

Post by Melmoth »

Thanks a lot! That's a quick reply, and very helpful! :grinking:

And your program's the best - even compared to commercial ones - keep the pot boiling!

•=Melmoth=•
Post Reply