Oh boy... another problem (now with refresh)

Post Reply
JoaquimC
Posts: 16
Joined: Fri Feb 09, 2007 6:43 pm
Location: Porto - Portugal

Oh boy... another problem (now with refresh)

Post by JoaquimC »

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
User avatar
Antonio Linares
Site Admin
Posts: 37485
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
JoaquimC
Posts: 16
Joined: Fri Feb 09, 2007 6:43 pm
Location: Porto - Portugal

Post by JoaquimC »

Maybe, but thank you again Antonio.

Joaquim
User avatar
Antonio Linares
Site Admin
Posts: 37485
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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:

Code: Select all

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