FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour Testing Mod-harbour and Mercury
Posts: 9
Joined: Sun Nov 27, 2016 08:24 AM
Testing Mod-harbour and Mercury
Posted: Wed Aug 05, 2020 04:54 PM

I am trying to migrate my desktop Harbour app into Mod-harbour and Mercury web app.

Until now found next issues:

1.It appears that IF a==b (also IF ALLTRIM(a)==ALLTRIM(b)) do not work, but IF a=b works. Both vars a and b are string variables with exactly same value.

2.As I have some functions that work with arrays, Mercury informs me about error displaying my code and message:
Description Bound error
Operation array access
Subsytem BASE
Is it possible to have line number where error occurs ? That function have many lines of code, it is hard to find line with error.

3.Will PRIVATE variables in PRGs work same as in desktop Harbour app. Do I need to eliminate PRIVATE vars and use function parameters instead ?

Thank you and Best regards.

Dako.

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Testing Mod-harbour and Mercury
Posted: Thu Aug 06, 2020 03:17 PM

Dakosimo,

Mercury has nothing to do with it is a harbour issue. I would have to investigate what each variable has

What version of Mercury do you use? In version 1.08 the error system was expanded

I think that it is best to always use functions and their local variables.

Regards
C.

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 9
Joined: Sun Nov 27, 2016 08:24 AM
Re: Testing Mod-harbour and Mercury
Posted: Fri Aug 07, 2020 06:20 PM

Hi Carles.
I am working with Version: Mercury v1.08b.
I cured my errors, it takes more time then if I had closer error location, but I practiced myself to work in this situation.
I tried to use my old code which contains some PRIVATE vars, and it also works ! Agree that it is better to reorganize my code not to use private vars.
Your PDF book is great !
Thanks and Best regards.
Dako.

Continue the discussion