Forum Post: RE: character to memptr

  • Thread starter Thread starter Brian K. Maher
  • Start date Start date
Status
Not open for further replies.
B

Brian K. Maher

Guest
define variable someString as character no-undo. define variable somePointer as memptr no-undo. define variable someLongChar as longchar no-undo. someString = "blah blah blah". set-size(somePointer) = length(someString) + 1. /* +1 to include the null at the end of the string */ put-string(somePointer,1) = someString. If your character data is in a longchar variable it is easier... someLongChar = someString. copy-lob from someLongChar to somePointer.

Continue reading...
 
Status
Not open for further replies.
Back
Top