Opened 7 years ago

Closed 7 years ago

Last modified 7 years 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

Description

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

col := 'testing' asStringCollection.
col asString.

The result is :

'testing
'               

Expected result is:

'testing'               

Change History (1)

comment:1 by patrik.svestka@…, 7 years ago

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:
testing.

Version 0, edited 7 years ago by patrik.svestka@… (next)
Note: See TracTickets for help on using tickets.