Search found 109 matches: varget

Return to advanced search

Re: XBROWSE exclude or control ARROW keys in edit mode

... we may use oGet:VarPut() or oGet:cText := ... example: oCol:bEditValid := { |oGet| MyValidFunc( oGet ) } func MyValidFunc( oGet ) if oGet:oGet:VarGet() .... oGet:cText := <replace> endif return .t. If we want to modify another field consequent on a user input in a column we may use oCol:bOnChange ...
by nageswaragunupudi
Wed Nov 19, 2014 9:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE exclude or control ARROW keys in edit mode
Replies: 13
Views: 5329

Re: simulate a read

... !!!... can I set the valid clausole on second moment on another function when show() the get ? I tried with aGet[11]:bvalid :={|o| ! Empty(o:varGet()) } but make error the user can use the xbrowse ( the obrw is on up) or the other buttons allready tried with bPostKey
by Silvio.Falconi
Fri Nov 14, 2014 8:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate a read
Replies: 10
Views: 1448

tAds 2.1b

... := "Select * from VENDAS Where COD_CLIENTE == _CodigoCliente_" oDs_MyQuery:DsAddVar("_CodigoCliente_",{||oDb_Clientes:VarGet("CODIGO")}) Do While !oDb_Clientes:Eof() oDs_MyQuery:DsExecute() oDb_Clientes:Skip() EndDo Repositorio de tAds https://tads-class-for-harbour.googlecode.com/svn/trunk
by Giovany Vecchi
Sun Sep 14, 2014 11:32 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: tAds 2.1b
Replies: 0
Views: 339

Re: Color get en rojo si es negativo...Anexo imagen

... eso cuando detecta en un campo numérico que se escriba el carácter `-` Puedes probar asi @ nf, nC GET oGet VAR nGet .... ; VALID (if( oGet:VarGet() < 0, (oGet:SetColor( CLR_HRED, CLR_WHITE ),oGet:Refresh(), .T.), .T. )) Aunque si funciona, yo crearía una función pasando el objeto get ...
by ACC69
Mon Feb 24, 2014 4:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Color get en rojo si es negativo...Anexo imagen
Replies: 7
Views: 1024

Re: Color get en rojo si es negativo...Anexo imagen

... eso cuando detecta en un campo numérico que se escriba el carácter `-` Puedes probar asi @ nf, nC GET oGet VAR nGet .... ; VALID (if( oGet:VarGet() < 0, (oGet:SetColor( CLR_HRED, CLR_WHITE ),oGet:Refresh(), .T.), .T. )) Aunque si funciona, yo crearía una función pasando el objeto get ...
by cnavarro
Sat Feb 22, 2014 12:24 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Color get en rojo si es negativo...Anexo imagen
Replies: 7
Views: 1024

Re: Dtepicker and VALID clausule

... modified this line of your code: @ 40, 48 DTPICKER oGet[3] VAR dDat OF oDlg SIZE 60, 10 VALID ( MsgBeep(), .T. ) /* MyValid(oGet[3],'YEAR(oGet:Varget())=2013') */ PIXEL and the beep seems to be fine. Could you please test it and check how to reproduce the problems that you describe ? thanks ...
by Franklin Demont
Tue Nov 12, 2013 12:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dtepicker and VALID clausule
Replies: 4
Views: 1048

Re: Dtepicker and VALID clausule

... modified this line of your code: @ 40, 48 DTPICKER oGet[3] VAR dDat OF oDlg SIZE 60, 10 VALID ( MsgBeep(), .T. ) /* MyValid(oGet[3],'YEAR(oGet:Varget())=2013') */ PIXEL and the beep seems to be fine. Could you please test it and check how to reproduce the problems that you describe ? thanks
by Antonio Linares
Tue Nov 12, 2013 10:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dtepicker and VALID clausule
Replies: 4
Views: 1048

Using DTPICKER : wrong ROW coordinates

... a get should give a msgerror when VALID is used as @ 1, 6 GET oGet VAR cCad OF oDlg SIZE 60, 10 PICTURE "@K" VALID MyValid(oGet,'oGet:Varget()="T"') (see example) 2) The OK button has a when-clausule as @ 3, 7 BUTTON "&Ok" OF oDlg SIZE 30, 12 ACTION oDlg:End() ...
by Franklin Demont
Sun Nov 10, 2013 5:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using DTPICKER : wrong ROW coordinates
Replies: 1
Views: 666

Re: GET like facebook's search.

... SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr( 149 ), "*" ),; Len( Trim( ::oGet:buffer ) ) ) ) #endif else If Empty( ::oGet:VarGet()) .and. Empty(::oGet:buffer) SetWindowText( ::hWnd, If( ! Empty( ::cCueText ); .and. Empty( ::oGet:VarGet() ),; "", ::oGet:buffer ...
by emotta_no
Thu Aug 22, 2013 5:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GET like facebook's search.
Replies: 1
Views: 580

Re: bug in FW 13.04 combobox

Antonio, here are still a logical call to ::oGet and should removed! METHOD VarGet() CLASS TComboBox local cRet, nAt := ::SendMsg( CB_GETCURSEL ) if nAt != CB_ERR ::nAt = nAt + 1 cRet := If( ::oGet == nil, ::aItems[ nAt + 1 ], ::oGet:GetText() ) //::OGET!!! else ...
by byte-one
Mon May 20, 2013 8:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: bug in FW 13.04 combobox
Replies: 82
Views: 29091

Re: Validate get

... work just fine in earlier versions of my system before I upgraded FWH/Harbour. Is there a better way of testing for an empty field? I've oSS_Num:VarGet() and oSS_Num:Value() both methods test as empty. VALID ( if (empty(cSS_Num ) , .F., .T. )) ; So I work my
by cnavarro
Thu May 16, 2013 10:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Validate get
Replies: 10
Views: 1417

Validate get

... work just fine in earlier versions of my system before I upgraded FWH/Harbour. Is there a better way of testing for an empty field? I've oSS_Num:VarGet() and oSS_Num:Value() both methods test as empty.
by DonDrew
Thu May 16, 2013 8:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Validate get
Replies: 10
Views: 1417

Re: Get decimal picture

... Trade\Versao9.0\Source\DlgVenda.prg => DETALHEPRODUTO(17114) oGt[4]:cPicture := cMascara oGt[4]:oGet:Picture := cMascara oGt[4]:oGet:VarGet() // not sure about this one oGt[4]:oGet:SetText( oGt[4]:oGet:buffer ) //-- 17114
by sambomb
Fri May 10, 2013 2:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get decimal picture
Replies: 31
Views: 6329

Re: Get decimal picture

Try this:

Procedure ChangePicture()
cMascara := "999,999.99"
oGt[4]:cPicture := cMascara
oGt[4]:oGet:Picture := cMascara
oGt[4]:oGet:VarGet() // not sure about this one
oGt[4]:oGet:SetText( oGt[4]:oGet:buffer )
by Antonio Linares
Fri May 10, 2013 2:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get decimal picture
Replies: 31
Views: 6329

Re: Simulate BackSpace on a Get resolved !!

... will try just copy & paste it from my original example you will find that it IS working. My line: ACTION (oGet:oGet:varPut( left( oGet:oGet:varGet(),len( rtrim(oGet:oGet:varGet()) )-1) ), oGet:refresh() ) and your retyped line: ACTION (oGet:oGet:varPut( left( oGet:oGet:varGet(),len( rtrim(oGet:oGet:varGet()) ...
by James Bott
Mon May 06, 2013 8:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simulate BackSpace on a Get resolved !!
Replies: 16
Views: 3506
PreviousNext

Return to advanced search