CLASS Code Syntax with HMG vs. Xbase++

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 1446
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 267 times
Been thanked: 415 times

CLASS Code Syntax with HMG vs. Xbase++

Post by AUGE_OHR »

hi,

i have to learn about Difference of HMG and Xbase++ CLASS Code Syntax

Code: Select all

   METHOD   setTabstops()                         VIRTUAL
   METHOD   itemMarked( ... )                     SETGET
what does VIRTUAL mean :?:
under Xbase++ i have ACCESS ASSIGN. is that the same like SETGET :?:

"where" can i read more about HMG CLASS Syntax :idea:
have fun
Jimmy

User avatar
Rathinagiri
Posts: 5408
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 249 times
Been thanked: 301 times
Contact:

Post by Rathinagiri »

I think there is nothing called HMG CLASS syntax. It is Harbour Class only.

I think you can get more info from https://harbour.github.io/doc/harbour.html#class-cmd
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Rathinagiri
Posts: 5408
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 249 times
Been thanked: 301 times
Contact:

Post by Rathinagiri »

As per Harbour Doc:

VIRTUAL Methods that do nothing. Useful for Base classes where

the child class will define the method's behavior, or when you are first creating and testing a Class.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
gfilatov
Posts: 826
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 43 times
Been thanked: 539 times
Contact:

Post by gfilatov »

AUGE_OHR wrote:
Thu Jul 22, 2021 12:35 am
hi,
...
under Xbase++ i have ACCESS ASSIGN. is that the same like SETGET :?:
...
Hi,

Yes, it is.

Example code:

Code: Select all

CLASS XbpReg
      ...
      /*ACCESS ASSIGN*/ METHOD Standard SETGET
      /*ACCESS ASSIGN*/ METHOD ReadBinType SETGET     // get/set ::cReadBinaryTypeAs
      /*ACCESS ASSIGN*/ METHOD SaveStringType SETGET  // get/set ::cSaveStringTypeAs
      ...
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein

Post Reply