FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour large class divided into n prg : itis possible ?
Posts: 7335
Joined: Thu Oct 18, 2012 07:17 PM

large class divided into n prg : itis possible ?

Posted: Wed Jun 03, 2026 09:29 PM

I have a class big like xbrowse. Is it possible to create three or four different files and put the methods of the same class?

Can methods of the same class be implemented in different PRG files?

For example:

TFiveXL.prg CLASS TFiveXL METHOD Paint() METHOD DrawGrid() METHOD ConfirmFormula() ENDCLASS

TFiveXL_Formula.prg METHOD ConfirmFormula() CLASS TFiveXL

TFiveXL_IO.prg METHOD SaveSheet() CLASS TFiveXL

Is this a recommended practice in Harbour/FiveWin projects?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6760
Joined: Wed Feb 15, 2012 08:25 PM

Re: large class divided into n prg : itis possible ?

Posted: Wed Jun 03, 2026 10:45 PM

Try

MICLASS01.PRG

CLASS ....

ENDCLASS

METHOD New() CLAS ....

Return Self

#include "MICLASS02.PRG"

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion