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.
|
||||
Brian Maher
|
||||
Principal Engineer, Technical Support
|
||||
Progress
|
||||
14 Oak Park | Bedford, MA 01730 | USA
|
||||
|
||||
|
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?
|
||||
Brian Maher
|
||||
Principal Engineer, Technical Support
|
||||
Progress
|
||||
14 Oak Park | Bedford, MA 01730 | USA
|
||||
|
||||
|
> 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.
> 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.
[/quote]@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).
Do think this and everything else that can be packed as some kind of SDK will be better of if released as a public project on github, Peter might use some help from community ;)
> 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.
Actually there is something in OE Help but it eventually ends-up pointing to this online documentation - documentation.progress.com/.../index.html
[quote user="marian.edu"]
[/quote]
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.
|
> 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.
That's probably just a feature of the community's 'bulletin board system'... trying to quote you my reply was 'not everyone is perfect' but guess that really equals to being speechless :)