Jothilingam
26th October 2005, 08:37
Hai,

I exported (with not script, only script object) a customized package from BaanIV to BaanVc., In BaanIV the codes are executing fine but in BaanV some of the same codes are not executing the way they have to....

For Information:
---------------
BaanIV SP8
BaanV SP15

Codes For Example:
--------------------
In BaanIV:
-----------
after.display:
gccus350.loan = gccusl360.ltyp
db.eq(tgccus350)

In BaanV:
----------
after.display:
The above code was giving wrong results....
so I converted the db.eq functions into select statement
after that it started working fine...

Trouble shooting options:
----------------------
Option 1: Conversion of db.eq function to select statement
--------
Option 2: Is it because, I changed the coded and compiled once again
------- in BaanV

My main doubt is on option2 - once again I compiled in BaanV.

I also run the compilation for the whole package.... scripts only or the
Particular vrc...

In case the option 2 is correct then... (Like compilation problem)
What as to be done to make all the scripts work in BaanVc

Can some one advice me...

Jothilingam

mark_h
26th October 2005, 21:21
I do not recall a post stating the db.eq does not work in Baan 5c, but I can see where compiling it would create a different object. Can you try just moving the code and re-compile (without changing the code) the script?

Jothilingam
29th October 2005, 08:53
Thx Mark for the reply...

From BaanIv whole package is been exported to BaanVc with script object only
No sources...
All those code are working fine in BaanIv.
But the same code gives are not giving the expect result
then I copied the source to BaanV and compiled with select statement..
started giving the expect result...

For Example:
-----------
gccus350.loan = gccusl360.ltyp
db.eq(tgccus350)

After db.eq function...

"if gccusl360.insn <> gccus350.dins then" This state gives wrong result
when I debug gccus350.dins gives Zero value...
but gccus350.dins is having value > 0

for the same condition, I wrote select statement and compile, it started
Working....

Reasons would be...Nothing but compilation....
Solution
--Cut and paste all the source to BaanV from BaanIV and compile in BaanV
-- or just replace the script objects..

Did any one as faced the problem before and got solution...

mark_h
30th October 2005, 02:25
Can't you export and import the code into Baan V? Then you can just run the compile program scripts session for everything in one VRC. That is if Baan V has something like that.

Jothilingam
30th October 2005, 07:28
In the end, In am planning to do that...
So far I did not do that, because its customer server and live server too..
thanks Mark