Kbase P43206: How To Use SET-POINTER-VALUE To A String
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/16/2009 |
|
Status: Verified
GOAL:
How To Use SET-POINTER-VALUE To A String
GOAL:
How to point to the correct location in a MEMPTR containing a string value
FACT(s) (Environment):
All Supported Operating Systems
Progress/OpenEdge Product Family
FIX:
Use the GET-POINTER-VALUE to get to the root of the string and then increment to the required position. For example:
def var m1 as memptr no-undo.
def var m2 as memptr no-undo.
set-size(m1) = 11.
put-string(m1) = "0123456789".
set-pointer-value(m2) = get-pointer-value(m1) + 5.
message get-string(m2,1) view-as alert-box. /* Results in 56789 */