FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Migrate to Harbour
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 02:13 PM
Enrico,

If I properly understand you, what you want should get solved this way:

[\{| [<oMenuItem>] | <uAction>\}],;

If with this change is working right, then we modify FiveWin.ch and problem solved :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 02:17 PM

But it is not a proper solution, because that oMenuItem is not this one:

xcommand MENUITEM [ <oMenuItem> PROMPT ] [<cPrompt>]

because it could be used from the codeblock, but not defined there.

In other words, the codeblock parameter oMenuItem should only exist if it is used from the codeblock inside code. As far as I know the Harbour preprocessor (neither Clipper's one) provides support for that.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 02:25 PM
Antonio,

Antonio Linares wrote:Enrico,

If I properly understand you, what you want should get solved this way:

[\{| [<oMenuItem>] | <uAction>\}],;

If with this change is working right, then we modify FiveWin.ch and problem solved :-)


Please note that this is only one of many warnings we can receive.

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 02:27 PM
Antonio,

Antonio Linares wrote:But it is not a proper solution, because that oMenuItem is not this one:

#xcommand MENUITEM [ <oMenuItem> PROMPT ] [<cPrompt>]

because it could be used from the codeblock, but not defined there.

In other words, the codeblock parameter oMenuItem should only exist if it is used from the codeblock inside code. As far as I know the Harbour preprocessor (neither Clipper's one) provides support for that.


So? Ok, I will lower warning level to try Harbour but we need of a proper solution.

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 02:30 PM

Enrico,

Clipper did not support that, as far as I know, neither Harbour (or xharbour). If the warning that you get comes from the codeblock (have you checked this ?) then I don't see a solution.

BTW, I am sure that you will love this: :-D

viewtopic.php?p=161905#p161905

OMG, just to report a bug... :-D

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 02:31 PM

I just lowered warnings level from /w3 to /w. :-(

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 02:36 PM
Antonio,

Antonio Linares wrote:Enrico,

Clipper did not support that, as far as I know, neither Harbour (or xharbour). If the warning that you get comes from the codeblock (have you checked this ?) then I don't see a solution.


So /w3 and /w2 are not useable with Harbour/FWH. :-)

Antonio Linares wrote:BTW, I am sure that you will love this: :-)
viewtopic.php?p=161905#p161905
LOL


"How to Donate"? Is it a joke? :-)

Antonio Linares wrote:OMG, just to report a bug... :-)


I don't understand. What bug?

EMG
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 02:49 PM
Enrico Maria Giordano wrote:Cristobal,

cnavarro wrote:Enrico, look the .ppo

Code (fw): Select all Collapse
    oMen := MenuBegin( .F.,,, .F., .F. )
        MenuAddItem( "Test",, .F.,, {|oMenuItem|MSGINFO( "OK" )},,,,,,, .F.,,, .F. )
    MenuEnd()


If you are suggesting to change tons of lines of code, well, it's not an option.

EMG


Enrico,
Not what I meant
Was only to document where the warning comes from varying oMenuitem


No es lo que queria decir
Solo era para documentar de dónde viene el warning de la variable oMenuitem
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 03:05 PM

Cristobal,

Understood, thank you.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 06:55 PM
Enrico,

In https://raw.githubusercontent.com/vszakats/harbour-core/master/CONTRIBUTING.md please read from:

# Troubleshooting

Evaluate these points before reporting an issue:


Now read the list of tasks to be done before asking for a question :-)

You will understand what I mean :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Sat Jul 05, 2014 07:36 PM

Antonio,

GOSH! It's just like to say "Please do not disturb. We are playing with our toy.". :-)

EMG

Continue the discussion