Skip to content

Transform() incompatibilities with VO #2002

Description

@cpyrgas

For this code

FUNCTION Start() AS VOID
LOCAL cPicture := "99,999,999.99" AS STRING
? "|" + Transform( 0, cPicture) + "|"
? "|" + Transform( "", cPicture) + "|"
? "|" + Transform( " ", cPicture) + "|"
? "|" + Transform( "abcde", cPicture) + "|"
? "|" + Transform( NULL_DATE, cPicture) + "|"
? "|" + Transform( 2026.07.05, cPicture) + "|"
? "|" + Transform( TRUE, cPicture) + "|"

VO prints

|         0,00|
||
| |
|ab,de|
|  /  /    |
|05/07/2026|
|9|

and X#

|         0,00|
|  ,   ,   .  |
|  ,   ,   .  |
|ab,de ,   .  |
|  ,  /,   .  |
|05,07/,026.  |
|99,999,999.99|

Some results in VO do not make sense, but at least the empty string version needs to be adjusted in X#, because the above is widely used in reports

Metadata

Metadata

Assignees

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions