Dear All!
Please, shed some light on the strange behaviour of UV BASIC FMTS function.
Environment: UV 9.6.2.6 and 9.6.2.1 on HPUX 11i on PA-RISC 8xxx.
Problem: FMTS is supposed to FMT each field of a given dynamic array.
It appears to be wrong if source data in a field of the array contains CHAR(247).
The character in question is a letter of Latvian language, one of three languages we've packed
into 256 ASCII values and it would be hard to relocate it to some other place,
not to mention conversion of terabytes of data and hundreds of workplaces we have.
Reproduction: following program in our environment gives following results:
SUBROUTINE SWR.T1
T='This is a text which will wrap at some point' T:[EMAIL PROTECTED]:'Here goes another field yet with same purpose' F=FMTS(T, '16T') CONVERT @TM TO CHAR(10) IN F CONVERT @FM TO '|' IN F CONVERT CHAR(32) TO '.' IN F CONVERT CHAR(247) TO '=' IN F PRINT 'FMTS=' PRINT F PRINT '=FMTS'
T='This is a text which will wr':CHAR(247):'p at some point' T:[EMAIL PROTECTED]:'Here goes ano':CHAR(247):'her field yet with same purpose' F=FMTS(T, '16T') CONVERT @TM TO CHAR(10) IN F CONVERT @FM TO '|' IN F CONVERT CHAR(32) TO '.' IN F CONVERT CHAR(247) TO '=' IN F PRINT 'FMTS=' PRINT F PRINT '=FMTS'
F=FMT(T<1>, '16T'):@FM:FMT(T<2>, '16T') CONVERT @TM TO CHAR(10) IN F CONVERT @FM TO '|' IN F CONVERT CHAR(32) TO '.' IN F CONVERT CHAR(247) TO '=' IN F PRINT 'FMT=' PRINT F PRINT '=FMT'
END
FMTS= This.is.a.text.. which.will.wrap. at.some.point...|Here.goes....... another.field... yet.with.same... purpose......... =FMTS FMTS= This.is.a.text.. which.will.wr...=p.at.some.point.|Here.goes.ano...=her.field.yet... with.same....... purpose......... =FMTS FMT= This.is.a.text.. which.will.wr=p. at.some.point...|Here.goes....... ano=her.field... yet.with.same... purpose......... =FMT
Thank you in advance, Aleksejs. ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
