Copying message segments from one object to another
Posted: Wed Jan 16, 2013 8:26 pm
Hello,
How should one copy a message element from one object to another?
For example, I am trying to copy the contents of one TdiPID_26 to another TdiPID_26. I tried FPid_A.Assign(FPid_B), but it produced a run-time error. I also tried FPid_A.AsString := FPid_B.AsString, but it produced a compile-time error, since TdiPID_26 does not have an AsString property.
I looked in the DelphiHl7_Guide and searched in this forum, but did not see how to accomplish this.
Thank you.
Jerry
How should one copy a message element from one object to another?
For example, I am trying to copy the contents of one TdiPID_26 to another TdiPID_26. I tried FPid_A.Assign(FPid_B), but it produced a run-time error. I also tried FPid_A.AsString := FPid_B.AsString, but it produced a compile-time error, since TdiPID_26 does not have an AsString property.
I looked in the DelphiHl7_Guide and searched in this forum, but did not see how to accomplish this.
Thank you.
Jerry