Hallo,
Can somebody help mee.
I write a function to convert a DWORD to CHAR but i have problems with de pointer any.
See mij code
CALL "Second_ASQII"
OTZwaarde :=DB15.DBD64 //DWORD in DB15
DBString :=P#DB41.DBX210.0 //DB41= DWORD to char
StringFile:='A'
The string in DB41 = 'A000000_04' and begin on byte 210
FC1
L P##DBString //any pointer
LAR1
L D [AR1,P#2.0]
T #iDBArea
L W [AR1,P#4.0]
T #iDBNummer
L D [AR1,P#6.0]
T #IDBBereik
OPN DB [#iDBNummer]
LAR1 P#2.0
L #StringFile
T DBB [AR1,P#0.0]
L ' '
T DBW [AR1,P#3.0]
L ' '
T DBW [AR1,P#5.0]
L ' '
T DBW [AR1,P#7.0]
L ' '
T DBW [AR1,P#9.0]
L ' '
T DBB [AR1,P#11.0]
thanks
Jacques
Can somebody help mee.
I write a function to convert a DWORD to CHAR but i have problems with de pointer any.
See mij code
CALL "Second_ASQII"
OTZwaarde :=DB15.DBD64 //DWORD in DB15
DBString :=P#DB41.DBX210.0 //DB41= DWORD to char
StringFile:='A'
The string in DB41 = 'A000000_04' and begin on byte 210
FC1
L P##DBString //any pointer
LAR1
L D [AR1,P#2.0]
T #iDBArea
L W [AR1,P#4.0]
T #iDBNummer
L D [AR1,P#6.0]
T #IDBBereik
OPN DB [#iDBNummer]
LAR1 P#2.0
L #StringFile
T DBB [AR1,P#0.0]
L ' '
T DBW [AR1,P#3.0]
L ' '
T DBW [AR1,P#5.0]
L ' '
T DBW [AR1,P#7.0]
L ' '
T DBW [AR1,P#9.0]
L ' '
T DBB [AR1,P#11.0]
thanks
Jacques