CLASS Code Syntax with HMG vs. Xbase++

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

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: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: CLASS Code Syntax with HMG vs. Xbase++

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: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: CLASS Code Syntax with HMG vs. Xbase++

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: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: CLASS Code Syntax with HMG vs. Xbase++

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