Search found 173 matches: subclass

Return to advanced search

Re: trying with tdatabase

Silvio,

You already have the files opening it a specified path with the subclass we created, so you don't need a function to do it also.
by James Bott
Thu Jan 24, 2019 5:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: trying with tdatabase
Replies: 34
Views: 5888

Re: A toolbox of netfunctions

... using statics. And I don't recommend calling functions to manipulate the database. If you want to modify the database's behavior then create a subclass and override a method (like Zap()). Class MyDatabase from TDatabase   Method Zap()EndclassMethod Zap() Class MyDatabase    ...
by James Bott
Thu Jan 24, 2019 4:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A toolbox of netfunctions and tDatabase-tests
Replies: 30
Views: 7245

Re: A toolbox of netfunctions

Uwe, You should be using database objects. Some messaging is already built into TDatabase. If those don't meet your desires then you can subclass and write your own. This much easier than calling a bunch of functions each time you try to lock or save a record. You just do oCustomer:save() ...
by James Bott
Thu Jan 17, 2019 10:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A toolbox of netfunctions and tDatabase-tests
Replies: 30
Views: 7245

Re: Process statistics in database guidence

Marc, You could also get these numbers with an invoice database class. You just subclass from TDatabase and add a method for TotalSales( cYear ). So you would just do this: oInvoices():= TInvoices():New()oInvoices:TotalSales( year(date()) ...
by James Bott
Fri Dec 28, 2018 11:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Process statistics in database guidence
Replies: 4
Views: 1130

Re: Responsive desktop design

... programming, especially because all of the coordinates will be in variables... If you want to resize your window or dialog, you may have to use a subclass to control your refresh rate.... To create the dialog that adjust to the device screen resolution, in my case, full screen: DEFINE dialog oDialog ...
by Bayron
Thu Oct 25, 2018 4:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Responsive desktop design
Replies: 19
Views: 6482

Re: Ribbon Theme

... You could make an Override to RibbonBar(rbgroup,rbtn) Class That is a possibility although I was never able to get that working. I usually just subclass, but the ribbonar code uses some code like this: if oWnd:IsKindOf( "TRPANEL" ) .and. oRB != NIL If you subclass you have ...
by James Bott
Fri Oct 19, 2018 4:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon Theme
Replies: 163
Views: 34250

Re: Lines and rectangles

For rounded corners it seems as we have to subclass from NSBox and override Method drawRect:

https://coredump.uno/questions/28585708/ui-issues-with-custom-nsbox
by Antonio Linares
Thu Sep 27, 2018 6:25 am
 
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: Lines and rectangles
Replies: 8
Views: 2865

Re: tDatabase- AdsSetAof()

... code that DBFs use, but it adds a number of features that standard DBF code does not have. Therefore, for this situation, the best approach is to subclass from TDatabase and make a new class for ADS. In the new TADS class you can add all the functions that are unique to TADS as methods. This way ...
by James Bott
Thu Nov 16, 2017 9:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: tDatabase- AdsSetAof()-RESUELTO
Replies: 2
Views: 735

Re: understanding OOP returning more than value from a method

Marc, This is how do it using a class. Ideally, this should be modified to be a subclass of TRecord, then it will read it's own data from the DBF. As you can see from the sample you just do: oPlayer:= TPlayer():new()msgInfo( oPlayer:AgeYMD() ...
by James Bott
Wed Oct 18, 2017 12:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: understanding OOP returning more than value from a method
Replies: 14
Views: 3806

Re: Final conversion 16 bit to FWH

... if you are using oKlants it is obvious that it is a DBF (or table). And rather than opening the table using conventional syntax, I would create a subclass and open the database and indexes in that as I have shown before in other messages. Then it takes only one line of code to create the table ...
by James Bott
Fri Jul 07, 2017 11:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Final conversion 16 bit to FWH
Replies: 26
Views: 5910

Re: Class syntax not working

... running. I ran some class scoping tests and this is what I found. FW/Clipper HIDDEN Only visible within the class in which it is defined and it's subclasses. PROTECTED Visible everywhere. Not assignable outside the class or subclass. READONLY Same as protected. FWH/Harbour All class scope syntax ...
by James Bott
Fri Jun 30, 2017 10:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Class syntax not working
Replies: 6
Views: 1293

Re: Tdata still Up to Date ?

... Since you might want to have a number of reports using the customer table object then it would be better to create a document class and subclass all your documents from that. This way each document object can have it's own Print() method which it might inherit from the parent Document ...
by James Bott
Thu Jun 01, 2017 3:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tdata still Up to Date ?
Replies: 25
Views: 6097

Re: Tdata still Up to Date ?

I haven't done this yet, but because this is common code for every table, I should make a subclass of TData and move this code into that class. Code: ::use() ::setOrder(1) If this is what a programmer wants in general, he can also set the global setting SET AUTORDER ...
by nageswaragunupudi
Sat May 27, 2017 1:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tdata still Up to Date ?
Replies: 25
Views: 6097

Re: Tdata still Up to Date ?

... mode, so I don't have to open the indexes separately. I haven't done this yet, but because this is common code for every table, I should make a subclass of TData and move this code into that class. ::use()::setOrder(1) Then inheriting from that class, the New Method for a table ...
by James Bott
Fri May 26, 2017 2:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tdata still Up to Date ?
Replies: 25
Views: 6097

Re: Ribbon tab color MICROSOFT OFFICE 2016

Antonio, Silvio, and what about the other Ribbon themes? They will not look fine if we force white there Maybe it would be easier to subclass for the new ribbonbar? Hmm, I guess that would be a problem since you are using the preprocessor to call the class. I don't know how you could call ...
by James Bott
Mon May 08, 2017 10:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon tab color MICROSOFT OFFICE 2016
Replies: 38
Views: 10936
PreviousNext

Return to advanced search