FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour harbour CLASS vs. Xbase++ CLASS
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
harbour CLASS vs. Xbase++ CLASS
Posted: Sun Oct 30, 2022 06:42 AM
hi,

under harbour i have to pass all Parameter which are need "before" Create Control

under Xbase++ i have o:New() to pass "some" Parameter AND MUST call o:Create()
but between o:New() and o:Create() i got access to Member of CLASS to "fill" Property
Code (fw): Select all Collapse
   oDlg := XbpDialog():New(oParent,oOwner,aPos,aSize)
   // before Create()
   oDlg:Caption := "Demo"
   ...
   oDlg:Create()
   // after Create()
   oDlg1:setDisplayFocus  := bSetFocus 
   oDlg1:killDisplayFocus := bKillFocus
this make OOP Code better to "read" instead of lot Parameter delemited with ","

Question :
is this Style possible under Fivewin :?:
can i still use #xCommand for this Type of CLASS :?:

p.s.
HMG does not have so much Parameter for #xCommand so i have not try to use OOP Style under HMG
greeting,

Jimmy
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: harbour CLASS vs. Xbase++ CLASS
Posted: Sun Oct 30, 2022 07:39 PM

Dear Jimmy,

Why don't you use the FWH commands ? Using them you avoid having to deal with so many parameters

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: harbour CLASS vs. Xbase++ CLASS
Posted: Mon Oct 31, 2022 05:00 AM
hi Antonio,
Antonio Linares wrote:Why don't you use the FWH commands ?
Using them you avoid having to deal with so many parameters
there are still a lot in Fivewin what i have to learn

i got Problem with xCommand e.g. COMBOBOX like in this Thread
https://forums.fivetechsupport.com/viewtopic.php?t=42381
both Method in 1st Sample crash and i don´t understand why :(

so i switch to OOP and try to use CLASS TCombobox()
OOP is much more easy for me and i can search in Source when i not understand Help File
greeting,

Jimmy

Continue the discussion