Faculty of Information Technology
Software Engineering Group

Opened 4 months ago

Closed 4 months ago

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

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

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