FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Oh boy... another problem (now with refresh)
Posts: 16
Joined: Fri Feb 09, 2007 06:43 PM
Oh boy... another problem (now with refresh)
Posted: Sun Feb 11, 2007 06:27 PM

I have a form with one dialog.
This form has some objects that i call with @ ... get.
The value of the respective variables changes as i click buttons on the form (i use the 'obj:refresh()' method to do it). The display of the get objects changes accordingly.
Then i call the dialog...
When i come back to the form 'obj.refresh()' don't work anymore...
I click the same buttons, the value of the variables change (i know it because i display it's value with 'msginfo()') but the objects that represent it in the form don't display the according value.

What could be wrong?

TIA,
Joaquim

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Oh boy... another problem (now with refresh)
Posted: Sun Feb 11, 2007 06:47 PM

Joaquim,

Please email me your PRG and tell me how to reproduce it. You may be missing something

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 16
Joined: Fri Feb 09, 2007 06:43 PM
Oh boy... another problem (now with refresh)
Posted: Sun Feb 11, 2007 07:04 PM

Maybe, but thank you again Antonio.

Joaquim

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Oh boy... another problem (now with refresh)
Posted: Sun Feb 11, 2007 08:25 PM
Joaquim,

Solved: you are reusing the same variables names in your PRG so you are changing their containts. Just declare this line in your PRG:
function m_dialogo(estado)
    LOCAL titulo, area
    local oNome_servico, oData, oNome_quarto, oNome_refeicao, oNome_cama, oLinhax // NEW !!!
...
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion