Extract from a MEMPTR

cferriol

Member
Hi, I need to extract a part of e MEMPTR.
I mean I have a MEMPTR variable and in need to extract the content from position 5 to the end.
How can I do that?
 

shireeshn

Member
Wht Casper said was right.

iam just providing an example, ithink this can be helpfull to u.

DEFINE VARIABLE vmem AS MEMPTR NO-UNDO.
SET-SIZE(vmem) = 10.
PUT-STRING(vmem,1) = "1sdfasdf".
MESSAGE GET-STRING(vmem,5)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
 
Top