Keyword changes: Difference between revisions

From NEOSYS Dev Wiki
Jump to navigationJump to search
(New page: === DELETE become DELETERECORD === "delete" is a reserved keyword for c++ so delete filename,key becomes deleterecord(filevar,key) or in oo style filevar.deleterecord(key) === CH...)
 
No edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=== DELETE become DELETERECORD ===
== Keyword changes ==


"delete" is a reserved keyword for c++ so
The standard pick keyword "delete" and "char" are reserved keywords in C++ and have to be substituted.


  delete filename,key
=== DELETE() become erase ===
 
  xxx=delete(yyy,fieldno,valueno,subvalueno)
 
becomes
 
xxx=erase(yyy,fieldno,valueno,subvaluen)
 
or in oo style
 
xxx=yyy.erase(fieldno,valueno,subvaluen)
 
=== DELETE become deleterecord ===
 
delete filevar,key


becomes
becomes

Latest revision as of 10:11, 26 July 2009

Keyword changes

The standard pick keyword "delete" and "char" are reserved keywords in C++ and have to be substituted.

DELETE() become erase

xxx=delete(yyy,fieldno,valueno,subvalueno)

becomes

xxx=erase(yyy,fieldno,valueno,subvaluen)

or in oo style

xxx=yyy.erase(fieldno,valueno,subvaluen)

DELETE become deleterecord

delete filevar,key

becomes

deleterecord(filevar,key)

or in oo style

filevar.deleterecord(key)

CHAR() becomes CHR()

"char" is a reserved keyword in c++ so

charx=char(intvar)

becomes

charx=chr(intvar)

or in oo style

charx=intvar.chr()