Copying structures

StepsTo copy the values of a structure to another structure of the same type:

  1. Assign the structure to be copied to the other structure using this syntax:

    struct1 = struct2
    

    PocketBuilder copies all the variable values from struct2 to struct1.

Example These statements copy the values in lstr_emp2 to lstr_emp1:

str_empdata lstr_emp1, lstr_emp2
...
lstr_emp1 = lstr_emp2