In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

OnEdit in TBrowse

XBase programming language in english
Srdjan
Posts: 111
Joined: Sun Jun 22, 2008 1:39 pm

OnEdit in TBrowse

Postby Srdjan » Sun Jun 22, 2008 1:39 pm

In init modul I have
::oBRW:aCols[3]:OnEdit := "UzmiSifru"
METHOD UzmiSifru( oSender, oPrevCtl ) CLASS TPrijemZ
LOCAL oRS := TBChoice( "SELECT Naziv, Sifra, Code, VPCena, MPCena, JMere
FROM Sifre", "Izbor artikla" )
LOCAL nSifra := IF( VALTYPE(oRS)=="N", 0, oRS:Sifra )
IF nSifra == 0
oRS := TNoviArtikal():New()
oRS:ShowModal()
ELSE
oSender:oDataField:VarPut( nSifra )
oSender:Refresh()
msgbox( str(nSifra)+oSender:oDataField:cName )
ENDIF
RETURN .T.
Why I can't change value in cell?

Return to “English”