harbour CLASS vs. Xbase++ CLASS

harbour CLASS vs. Xbase++ CLASS

Postby Jimmy » Sun Oct 30, 2022 6: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: Select all  Expand view
  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
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: harbour CLASS vs. Xbase++ CLASS

Postby Antonio Linares » Sun Oct 30, 2022 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: harbour CLASS vs. Xbase++ CLASS

Postby Jimmy » Mon Oct 31, 2022 5: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
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 113 guests