|
| Iniciado por guest, 06,feb. 2015 11:07 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 06,febrero 2015 - 11:07 |
Hi all,
I have two similar files, File A and File B. They are almost the same except for one field in File B. This field has 10 more characters then in File A. I need to put data from File A on top of File B. Normally one should use hAlias for that purpose. Because the files are not exactly the same, this won't work.
Does anyone know a "simple" solution for this ?
Thanks for any help.
Best regards,
Aad |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,febrero 2015 - 11:25 |
Hello Aad
Halias() is used to open another instance of the same file, so you can leave one instance of the file in one context and move to a different record in the alias copy without disturbing the position or buffer of the first instance.
You can use HCopyRecord(FileA,FileB) to copy from B to A. It will copy data between fields of the same name and then HAdd(FileA), because the first named file is the destination
Regards Al |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,febrero 2015 - 11:55 |
Hi Al,
Thank you for your response. Reading your reaction, I realize I forgot to mention, that File A and File B have the same name :cool:. This makes things a little more complicated.
Best regards,
Aad |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,febrero 2015 - 13:01 |
Problem solved.
In the analysis I imported File B under another name and renamed the physical file. I made a procedure that reads File A and changed the records of File B. When it was done a renamed the physical File B to its original name.
Best regards,
Aad |
| |
| |
| | | |
|
| | | | |
| | |
|