Page 1 of 1

Problema con .refresh / .refresh problem

Posted: Sat Mar 02, 2013 7:37 pm
by CarlosRD
Hola a todos.

en alguna parte de mi aplicación tengo el siguiente codigo:
somewhere in my application i have next code:

Code: Select all

procedure op201eliminar(e_op201reg)
  sino:=msgyesno('Desea Eliminar este Registro ?','Actualizar Base de Datos')
  if sino
    go e_op201reg
	delete
	pack
    v201.g01v201.refresh
  endif
return
Mi problema es que al compilar me aparece el siguiente error:
My problem is that when compiling I get the following error:

Code: Select all

Harbour 3.2.0dev (Rev. 18443)
Copyright (c) 1999-2012, http://harbour-project.org/

nuevo.prg(135) Error E0030  Syntax error "syntax error at '.'"

1 error

No code generated.
hbmk2: Error: Running Harbour compiler (embedded)........
la linea 135 en el .prg corresponde al .refresh
line 135 in .prg corresponds to .refresh

al inicio del .prg tengo:
at top of .prg i have:

Code: Select all

#include "hmg.ch"
#include "hfcl.ch"
por que el error???
why this error???

saludos / regards

Re: Problema con .refresh / .refresh problem

Posted: Sat Mar 02, 2013 8:08 pm
by mol
try to declare your window at the top of module

Code: Select all

declare window v201
or you can do it in this way:

Code: Select all

DoMethod("v201","g01v201","refresh")

Re: Problema con .refresh / .refresh problem

Posted: Sat Mar 02, 2013 9:02 pm
by Leopoldo Blancas
Hola..

Como dijo Mol... ese error por lo regular es por que no reconoce el nombre de la ventana a donde queremos hacer el Refresh...
A lo mejor esta mal el nombre de la ventana en donde estamos haciendo la referencia.

Saludos
Polo
*---------------------------------------------------------------------------------------------------------------------------------------------
Hello ..

As Mol said ... that error is usually not recognize the name of the window to where we want to do the Refresh ...
Maybe wrong the name of the window where we are making the referral.

regards
Polo

Re: Problema con .refresh / .refresh problem

Posted: Mon Mar 04, 2013 2:07 pm
by CarlosRD
mol / polo:
gracias por contestar.
mol: funciona perfecto. gracias

***************************

thanks for reply.
mol: it works perfect. thanks.

mol wrote:try to declare your window at the top of module

Code: Select all

declare window v201
or you can do it in this way:

Code: Select all

DoMethod("v201","g01v201","refresh")