Testing Mod-harbour and Mercury

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
dakosimo
Posts: 9
Joined: Sun Nov 27, 2016 8:24 am

Testing Mod-harbour and Mercury

Post by dakosimo »

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.
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: Testing Mod-harbour and Mercury

Post by Carles »

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..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
dakosimo
Posts: 9
Joined: Sun Nov 27, 2016 8:24 am

Re: Testing Mod-harbour and Mercury

Post by dakosimo »

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.
Post Reply