Search found 72 matches: bsetget

Return to advanced search

Re: numeric get

Dear Detlef,

Please modify this line in tget.prg this way:

FW_SayText( ::hDC, If( Empty( Eval( ::bSetGet ) ), "", Transform( Eval( ::bSetGet ), ::cPicture ) ), aRect, "R", ::oFont, ::nClrText )

now it works as you need :-)
by Antonio Linares
Thu Jul 20, 2023 11:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: numeric get
Replies: 8
Views: 322

Re: Newbie have COMBOBOX Question

... i understand that a Sample is need to reproduce Problem, but as Newbie i "ask" for a (simple) Sample --- i found out that 3rd Parameter bSetGet is used when "on change" Event is fired Sample i saw look like this local cItemo:bSetGet := {|u| If( PCount()==0, ...
by Jimmy
Sun Oct 30, 2022 10:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Newbie have COMBOBOX Question
Replies: 6
Views: 437

Re: New FTDN January/Enero 2021 (FWH 21.01)

... entre nMin y nMax caracteres. Útil para obtener variables de texto VarChar en bases de datos SQL. - Ahora es posible usar un bloque de código bSetGet como variable. Esto ayuda al programador a mejorar las capacidades del Get. Por ejemplo: bSetGet := { |x| If( x == nil, nVal * 100, nVal := ...
by Antonio Linares
Sun Feb 07, 2021 9:15 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2021 (FWH 21.01)
Replies: 1
Views: 1256

New FTDN January/Enero 2021 (FWH 21.01)

... returns a text with length between nMin and nMax characters. Useful in getting VarChar text in Sql databases. - It is now possible to use a bSetGet codeblock as variable. This helps the programmer to enhance the capabilities of Get. Eg: bSetGet := { |x| If( x == nil, nVal * 100, nVal := ...
by Antonio Linares
Sun Feb 07, 2021 9:10 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2021 (FWH 21.01)
Replies: 1
Views: 1256

Re: Consulta RICHEDIT

... y tu Texto enriquecido. De aqui en adelante solo muestra tu texto. DEFINE DIALOG oDlg RESOURCE "Test" oRich = TRichEdit():Redefine( 100, bSETGET( cTxt ), oDlg ) oRich:lHighLight = .T. Esta claro que es el contenido de la DBF. Esta DBF tiene 2 campos: Folio N 10 Cod_det Char 85 Disculpa ...
by remtec
Sat Feb 16, 2019 4:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta RICHEDIT
Replies: 30
Views: 4368

Re: XBROWSE bEditValid bug? updated!

Thanks, what are the difference between oGet:varget() and eval( oGet:bSetGet) ?

The second bug is definitive!
if :lAutosave := .T. for this column, the bEditValue is evaluated twice if i leave the column with ENTER but when leaving with mouse sometime runtime-error nLastkey == NIL.
by byte-one
Wed Jan 16, 2019 2:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE bEditValid bug? updated!
Replies: 5
Views: 965

XBROWSE bEditValid bug? updated!

... value "0101" and edit the column the resulting len of the x is 10, not 4! oBrw:aCols[4]:bEditValid := {|x|msginfo("'"+Eval( x:bSetGet)+"'"+CRLF+"Len: "+alltrim(str(len(Eval( x:bSetGet))))),.T.} It seems, that the variable always are added with spaces to ...
by byte-one
Tue Jan 15, 2019 10:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE bEditValid bug? updated!
Replies: 5
Views: 965

FWH 18.08: Gets with loop variable as array subscript

... n ] ;         SIZE 120,28 PIXEL OF oDlg      nRow  += 30   next  But this does not work. We get a runtime error. Reason: For every Get, its bSetGet codeblock is assigned with { |u| If( PCount() == 0, aValues[ n ], aValues[ n ] := u ) }. During runtime this codeblock is evaluated with the ...
by nageswaragunupudi
Thu Sep 27, 2018 6:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 18.08: Gets with loop variable as array subscript
Replies: 15
Views: 2463

Re: Abrir navegador dentro de un dialogo

... abEval, cStreet, cNum, cCity, cCountry, cTemp local cHtml := MemoRead( "google\google.html" ) cStreet := GoogleOk( AllTrim( Eval(aGet[1]:bSetGet) ) ) cNum := GoogleOk( AllTrim( Str( Eval(aGet[2]:bSetGet) ) ) ) cStreet := GoogleOk( cStreet + if( !Empty(cStreet), " "+cNum, "" ...
by Claudio Leiva
Mon Mar 27, 2017 8:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Abrir navegador dentro de un dialogo
Replies: 9
Views: 2350

DBCOMBO Metodos GotFocus() y LostFocus()

... pero sin resultados positivos. METHOD LostFocus() CLASS TDBCombo local nAt := ::SendMsg( CB_GETCURSEL ) if nAt != CB_ERR ::nAt = nAt + 1 Eval( ::bSetGet, ::aItems[ ::nAt ] ) else Eval( ::bSetGet, GetWindowText( ::hWnd ) ) endif //aqui se evalua el blostfocus if ! Empty( ::bLostFocus ) return ...
by mterraz
Mon Jan 09, 2017 3:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBCOMBO Metodos GotFocus() y LostFocus()
Replies: 4
Views: 2295

Re: Como saber si un control cambio.. updated()

Usando AScan() buscamos el primer control que sea distinto:

AScan( oDlg:aControls, { | oCtrl, n | oCtrl:bSetGet != nil .and. Eval( oCtrl:bSetGet ) != aInitValues[ n ] } ) != 0

un valor .T. significa que han habido cambios
by Antonio Linares
Mon Oct 24, 2016 7:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como saber si un control cambio.. updated()
Replies: 4
Views: 705

Re: Como saber si un control cambio.. updated()

... iniciales: local aInitValues := {} y antes de llamar a ACTIVATE DIALOG, hacemos: AEval( oDlg:aControls, { | oCtrl | AAdd( aInitValues, If( oCtrl:bSetGet != nil, Eval( oCtrl:bSetGet ), nil ) ) } ) Para comprobar si han habido cambios hacemos: AEval( oDlg:aControls, { | oCtrl, n | If( oCtrl:bSetGet ...
by Antonio Linares
Mon Oct 24, 2016 7:38 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como saber si un control cambio.. updated()
Replies: 4
Views: 705

Re: Combobox on multidimensional array

... PICT, PICTURE> <cPicture> ]; [ ON EDIT CHANGE <uEChange> ] ; => ; [ <oCbx> := ] TComboBox():ReDefine( <nId>, bSETGET(<cVar>),; ArrTranspose(<aItems>)[2], <oWnd>, <nHelpId>, <{uValid}>, [{|Self|<uChange>}],; <nClrText>, ...
by Marco Turco
Wed Sep 09, 2015 3:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Combobox on multidimensional array
Replies: 5
Views: 1206

FWH 14.08: MsgGet() to handle arrays and Quick Dialogs

... <bvld,...> ] ; => ; MsgGet( <ttl>, {<prmt>}, ; ArrTranspose( \{ \{ <"v1"> [,<"vN">] \}, ; \{ bSETGET( <v1> ) [, bSETGET( <vN> ) ] \} , nil, ; {<pic>}, {<bvld>} \} ) ) Now let us see how simole it is to get user input ...
by nageswaragunupudi
Sat Sep 06, 2014 7:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 14.08: MsgGet() to handle arrays and Quick Dialogs
Replies: 9
Views: 2881

Re: combobox QUESTION

From looking at the code for TCombo it looks like bSetGet will work. See the Change() method.

James
by James Bott
Mon Aug 11, 2014 5:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: combobox QUESTION- solved
Replies: 8
Views: 1069
Next

Return to advanced search