PV Ramone
28th October 2008, 18:28
Seems like the handling of text fields has changed in BaanIV. Some of our code does not work after upgrading to service pack 24 (coming from service pack 16).

The following report script code used to work fine before and not does not seem to concatenate ...


field.tcmcs041.txta:
before.print:
validate.textline()
lattr.prline = lattr.prline & " " & tdsls040.refb

|*** functions *****************************************************************

functions:

function validate.textline()
{
if ( lattr.prline(1;1) = ">" ) then
lattr.prline = lattr.prline(2)
else
if ( lattr.prline(1;1) = "<" ) then
lattr.print = false
endif
endif

mark_h
28th October 2008, 18:39
We just upgraded to SP24 - did you get new tools patches and portingset?

george7a
29th October 2008, 10:43
You mean lattr.prline is not getting updated after this command:
lattr.prline = lattr.prline & " " & tdsls040.refb
What is the values of lattr.prline & tdsls040.refb before and after the previous command?

- George

PV Ramone
29th October 2008, 11:30
seems like it is adding spaces after the text:

lattr.prline = "CPT "
tdslso40.refb = "Herentals "

then I can see it becomes
lattr.prline = "CPT Herentals "

but still it prints "CPT "

Is there a change in behavior for the trimming of spaces? (related to domain tc.txtn?)

mark_h
29th October 2008, 20:31
seems like it is adding spaces after the text:

lattr.prline = "CPT "
tdslso40.refb = "Herentals "

then I can see it becomes
lattr.prline = "CPT Herentals "

but still it prints "CPT "

Is there a change in behavior for the trimming of spaces? (related to domain tc.txtn?)

Have you tried strip$(lattr.prline)? So lattr.prline = lattr.prline & " " & tdsls040.refb becomes lattr.prline = strip$(lattr.prline) & " " & tdsls040.refb. Wondering if maybe lattr.prline is now acting like it is a fixed length.

PV Ramone
30th October 2008, 00:19
thanks Mark, your tip worked !