Robbydobbs Posted April 16, 2003 Share Posted April 16, 2003 Can you copy to more than one global field at a time? ie.. copy field "db1_customer_number" set field "db1_g_cust_num" copy field "db1_code" set field "db1_g_code" perform script paste db2: go to field "db2_id_number" set field "db1:db1_g_cust_num" paste "db2_id_number" go to field "db2_code" set field "db1:db1_g_code" paste "db2_code" Link to comment Share on other sites More sharing options...
LiveOak Posted April 16, 2003 Share Posted April 16, 2003 I think you have some misconception of how copy field an set field are used. You don't need both statements to accomplish a copy operation. Set Field[db1_g_cust_num, db1_customer_number] Set Field[db1_g_code,db1_code] Create fields in both files: Constant (calculation, number, stored, indexed) = 1 Create a relationship in db2 to db1 with Constant <--> Constant This relationship will allow you to access global fields in file1 from db2. Yours script in db2 becomes: Set Field[db2_id_number, NewRelationship::db1_g_cust_num] Set Field[db2_code, NewRelationship::db1_g_code] With SetField, you don't need "copy" and "paste" steps. -bd Link to comment Share on other sites More sharing options...
Robbydobbs Posted April 16, 2003 Author Share Posted April 16, 2003 thank you that's a great help. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7846 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now