06-15-2008 10:14 AM
Hi, I am running a program with unicode enable.I am moving data from work area to string where i am getting a error like String & work area are not mutually convertable in Uni code program.
Can any one help me how to resolve this problem.
Thanks & Regards,
Pratap.
06-15-2008 10:33 AM
Hi Pratap,
As far as I know, this cannot be done if your program is unicode enabled.
You will have to find a work around by using another work area.
If your requirement is to necessarily move the work area into a string and if the work area is not very large,
you might consider concatenating individual fields of the work area into the string.
Of course that is possible only if the work area has all character fields.
regards,
Sameer
06-15-2008 10:49 AM
Hi Pratap kumar,
sorry, need to do some redesign:
You could poiibly concatenate the components of the structure into a string - if they are all character-like. And you will loose leading and trailing spaces.
Non-character-componets must be converted (WRITE TO) into character-like fields.
If you need the exact position in your string, you have to place all values at calculatzed offset in a (big enough) character field like CHAR1024.
Altogether it might be easier to re-think and re-build according to results required. As you did not mention where you have this question, I have no special idea on how to solve.
Regards,
Clemens