Faculty of Information Technology
Software Engineering Group

Opened 22 months ago

Closed 21 months ago

Last modified 21 months ago

#150 closed defect (invalid)

Conversion from Stringcollection to String adds a new line

Reported by: Patrik Svestka Owned by:
Priority: major Milestone:
Component: default Keywords:
Cc: Also affects CVS HEAD (eXept version): no


The conversion from StringCollection? to String adds a bogus new line.

col := 'testing' asStringCollection.
col asString.

The result is :


Expected result is:


Change History (1)

comment:1 Changed 21 months ago by Patrik Svestka

Resolution: invalid
Status: newclosed

This behavior is correct based on the source code (see the below example). The issue lies somewhere else - will open separate ticket for that.

To have Stringcollection correctly converted to string without the last CR you have to use different method for that asStringWithoutFinalCR.

To have the correct result for the code above

col := 'testing' asStringCollection.
col asStringWithoutFinalCR.

Which correctly produces result:

Last edited 21 months ago by Patrik Svestka (previous) (diff)
Note: See TracTickets for help on using tickets.