Hello I hope this is my last question! 😉
Is there anyone who can explane the use of transfer in the following case:
OBJECT('System.String') :: STR
CHARACTER*6 :: CHR
!
STR = 'ABCDEF'
CHR = transfer(STR, CHR)
!
PRINT *,CHR
The output string are hieroglyphics. So I think, I never get the string 'ABCDF' but the Memory address of the variable (pointer).
I try the following with no changes:
OBJECT('System.String') :: STR
CHARACTER*6 :: CHR
INTEGER*2 LENGTH
!
LENGTH = 6
STR = 'ABCDEF'
CHR = transfer(STR, CHR, LENGTH)
!
PRINT *,CHR
The outoput is the same as on the top!
What do I wrong? Or how can I get access of the value (string) and not of the address (pointer)?
Greetings from Germany Michael