Faculty of Information Technology
Software Engineering Group

Opened 6 years ago

Closed 6 years ago

Last modified 6 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 Changed 6 years 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:
testing.

Version 0, edited 6 years ago by Patrik Svestka (next)
Note: See TracTickets for help on using tickets.