Search found 50 matches: ocust

Return to advanced search

FWH: Parent Child RowSets (MySql/MariaDB)

... <fieldlist> from customer" ) METHOD-2: Open both rowsets of parent and child> oStates := oCn:RowSet( "states" ) oCust := oCn:RowSet( "customer" ) Alternative syntaxes: a) oStates:AddChild( oCust, "state == ?", { "code" } ) b) oStates:AddChild( ...
by nageswaragunupudi
Thu Jul 21, 2016 7:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH: Parent Child RowSets (MySql/MariaDB)
Replies: 12
Views: 4321

Re: Problem with TPanel Paint Method

... you click it changes to the new name. I am using FWH 15.05/xHarbour Update 2: OK, I found the problem. Replace this line: oBrw:bSkip:= {|nRecs| oCust:skipper(nRecs) } With this: oBrw:setoDBF( oCust ) And all is OK. My bad! James
by James Bott
Wed Sep 09, 2015 4:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with TPanel Paint Method
Replies: 12
Views: 2639

Re: xBrowse header from an Array

... HEADERS aColumns ; // <----- here COLUMNS 1,2,3,4,5,6,7,8,9,10,11 ; <------ Add COLSIZES 65,43,43,43,43,43,43,43,43,43,43 ; // 11 ID 174 of oCust ; AUTOCOLS CELL LINES Regards Paco
by Francisco Horta
Sat Aug 08, 2015 5:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse header from an Array
Replies: 9
Views: 2773

Re: DBF to SQL converter program

... program is going to very difficult and tedious to debug. If you are using database objects then it is not much of an issue because you are using oCust:id, oPart:id, and oInvoice:id, so the code is very clear and you don't have to worry about aliases. You also are going to need the "standard" ...
by James Bott
Thu Jul 30, 2015 2:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to SQL converter program
Replies: 59
Views: 18580

Re: dbcombo blank

I am trying to understand your code. Are TComp, TDesc, etc database objects? If so you don't need to create memory vars, you can just use the database object fieldname, ie oCust:name.

And please use the code tags when posting code so it retains its format.
by James Bott
Tue Dec 09, 2014 7:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: dbcombo blank
Replies: 5
Views: 1468

Re: PalBmpDraw transparent on main window with gradient

... ) : Download ( everything included ) 1.9 MB : http://www.pflegeplus.com/fw_downloads/rick2.zip The Logo : REDEFINE IMAGE oImg1 ID 300 OF oCust FILENAME c_path + "\Images\Logo1.png" // Perform a Action or Info : oImg1:bLDblClick := {|| Msgalert( "Logo-Info","Information" ...
by ukoenig
Tue Mar 06, 2012 12:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: PalBmpDraw transparent on main window with gradient
Replies: 18
Views: 8202

Re: hash with (x)harbour - knowledge base

... is a good one. In essence, with his scatter you can refer to an array entry using syntax like : ?aVar[ LASTNAME ] to show what's in the buffer for oCust:LASTNAME. Clearly using the aforementioned syntax is much better than ?aVar[ 32 ] or even ?aVar[ _LASTNAME ] where _LASTNAME is #defined as 32. ...
by reinaldocrespo
Mon Sep 27, 2010 1:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hash with (x)harbour - knowledge base
Replies: 20
Views: 7988

Re: hash with (x)harbour - knowledge base

... hash? Did you know that the equivalent of scatter and gather is built into database objects. And instead of refering to aVars[1], you can refer to oCust:name. This makes the code much easier to write and read. There are lots of other good reasons to use database objects. See my articles on FW OOP ...
by James Bott
Tue Sep 21, 2010 11:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hash with (x)harbour - knowledge base
Replies: 20
Views: 7988

Re: Improvement to DBFs management ...

... ways to do this with database objects. You can use the skipper to keep both databases in sync: oLbx:bSkip:= {| nRecs | oInvoice:skipper( nRecs), oCustomer:seek( oInvoice:invno) } Then you just define the fields: @ 0,0 LISTBOX oLbx FIELDS oInvoice:invno, oCust:company... Also you can build complex ...
by James Bott
Tue Oct 13, 2009 4:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Improvement to DBFs management ...
Replies: 21
Views: 5940

Re: Improvement to DBFs management ...

... : @ <row>,<col> XBROWSE oBrw SIZE <width>,<height> PIXEL OF oWnd ; COLUMNS aCols HEADERS aHead COLSIZES aSizes OBJECT oCust CELL LINES I assume oCust to be the Database object. ( TData or TDataBase )
by nageswaragunupudi
Tue Oct 13, 2009 2:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Improvement to DBFs management ...
Replies: 21
Views: 5940

Browsing generally

... GET oClient VAR cClient ID EditFndClnt UPDATE picture '@!' color(GETCOL) oClient:bKeyDown := {|nKey|cClient+= chr(nKey),oBrowDlg:Update(),FndClnt(oCust,cClient,oLbx),; oClient:SetPos(len(alltrim(cClient))),oClient:SetFocus()} oClient:bLostFocus := {||oClient:Hide(),cClient := " ",oClient:SetPos(0),; ...
by Antonio Linares
Wed Aug 27, 2008 7:35 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 93975

NO LE ENTIENDO

... ) ) oCol:bFooter := { || nTotal } oCol:lTotal := .t. oCol:nEditType := EDIT_GET oCol:bOnPostEdit := {| o, u, n| If( n == 13, ( nTotal += (u - oCust:Salary), oCust:Salary := u, oCust:Save() ), nil ) } // total salary in the footer changes automatically. // no need to code or call refresh endif ...
by AIDA
Tue May 06, 2008 5:03 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: sumar una columna como le hago??? (YA RESUELTO GRACIAS)
Replies: 8
Views: 2161

... nArea:= select(1) CLOSE DATABASE select( nArea ) Return nil If you were using a database object you could simply do: ...VALID (oCust:end(), .t.) James
by James Bott
Wed Jan 30, 2008 9:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with xBrowse in MDI-Childs
Replies: 3
Views: 1153

... TDatabase:goto() reloads the buffer after the dbgoto() call. When I change the line to this it works: oBrw:bBookMark := {| n | iif( n == nil,; ( oCust:cAlias )->( RecNo() ),; ( oCust:cAlias )->( DbGoto( n ), oCust:load(); ) ) } Thus the two codeblocks that must be assigned are bSkip and ...
by James Bott
Mon Jan 07, 2008 6:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TXBrowse Bug
Replies: 18
Views: 2911

... I find that this line solves the problem. None of the others you provided are actually needed. oBrw:bBookMark := {| n | iif( n == nil,(oCust:RecNo()),(oCust:GoTo(n)) ) } I have not used TXBrowse before and none of the other browses I have used have a bBookMark codeblock so I am not ...
by James Bott
Mon Jan 07, 2008 6:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TXBrowse Bug
Replies: 18
Views: 2911
PreviousNext

Return to advanced search