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

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

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

Postby Antonio Linares » Sun Feb 11, 2007 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby JoaquimC » Sun Feb 11, 2007 7:04 pm

Maybe, but thank you again Antonio.

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

Postby Antonio Linares » Sun Feb 11, 2007 8: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:
Code: Select all  Expand view  RUN
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 9 guests