Problema con .refresh / .refresh problem

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
CarlosRD
Posts: 63
Joined: Thu Jan 31, 2013 9:20 pm
Location: Orizaba, México

Problema con .refresh / .refresh problem

Post 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
Todo en el Nombre de Jesus / All in the name of Jesus
Carlos RD
User avatar
mol
Posts: 3805
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Problema con .refresh / .refresh problem

Post 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")
Leopoldo Blancas
Posts: 388
Joined: Wed Nov 21, 2012 7:14 pm
Location: México

Re: Problema con .refresh / .refresh problem

Post 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
User avatar
CarlosRD
Posts: 63
Joined: Thu Jan 31, 2013 9:20 pm
Location: Orizaba, México

Re: Problema con .refresh / .refresh problem

Post 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")
Todo en el Nombre de Jesus / All in the name of Jesus
Carlos RD
Post Reply