Keyword changes

From NEOSYS Dev Wiki
Jump to: navigation, search

1 Keyword changes

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

1.1 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)

1.2 DELETE become deleterecord

delete filevar,key

becomes

deleterecord(filevar,key)

or in oo style

filevar.deleterecord(key)

1.3 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()