Hi, I have tried to copy the content of a file into a string with no success. Here is the code:
copy-lob from file cInputFilePath to textMemPtr. xmlString = NEW String(get-string(textMemPtr, 1)).The content is copied, but incomplete and I don't understand why. If I put the same string directly into a string var it works, so there is no reason to be a space problem.Anybody knows how can I solve it?Thanks in advance.
What data type is xmlString?
It is a String.
Does the data in the memptr have embedded null characters in it?
Maybe, but not at the point where it's cut.
Is there any other way to move the content to a String?
> On May 15, 2018, at 10:49 AM, untipet wrote:
>
> It is a String.
the 4GL does not have a datatype whose name is String. There are “char” and “longchar”. both are terminated by a null byte, regardless of the character set being used.
gus bjorklund > It is a String. the 4GL does not have a datatype whose name is String. There are “char” and “longchar”. both are terminated by a null byte, regardless of the character set being used.
@Gus, OE may not have a String primitive, but there is such a thing as the OpenEdge.Core.String class (which comes out of OpenEdge.Core.pl).
> On May 16, 2018, at 4:37 AM, bronco wrote:
> @Gus, OE may not have a String primitive, but there is such a thing as the OpenEdge.Core.String class (which comes out of OpenEdge.Core.pl).
Is there doc on OpenEdge.Core.pl, its contents, and usage someplace? I couldn’t find it. Maybe I didn’t look hard enough.
marian.edu Nowadays automatically generated 'documentation' seems to be good enough ;)
Guess how nice it would have been if the author of that code would have followed coding standards that include documentation standards ... I must be dreaming.
Architect of the SmartComponent Library and WinKit
Consultingwerk Ltd.
View online
You received this notification because you subscribed to the forum. To unsubscribe from only this thread, go here.
Flag this post as spam/abuse.
> On May 16, 2018, at 10:38 AM, marian.edu wrote:
> Actually there is something in OE Help but it eventually ends-up pointing to this online documentation - documentation.progress.com/.../index.html
guess at PSC there must be at least one person who thinks that is documentation.