Page 1 of 1

Copy field values

Posted: 2006-08-09 17:46:45
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?

Posted: 2006-08-09 18:49:14
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 ;)

Posted: 2006-08-09 19:32:37
by t88
thank you ;)

Posted: 2006-08-09 19:56:01
by t88
this program is wonderful!!!!!
many compliments!

How to insert other text?

Posted: 2006-08-21 21:47:17
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!

Posted: 2006-08-22 09:35:49
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');

Thanks!

Posted: 2006-08-22 11:10:37
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=•