How can I remove a property from a variant object in Smart Pascal?
In JavaScript I can remove a property with the delete keyword
delete obj['myProp'].
How to do it in Smart Pascal?
How can I remove a property from a variant object in Smart Pascal?
In JavaScript I can remove a property with the delete keyword
delete obj['myProp'].
How to do it in Smart Pascal?
Smart allows you to directly execute JavaScript code by reusing Delphi's
asmsyntax.The
@objsyntax is necessary if you are referring to a Smart Pascal entity because the actual name may be something else thanobjdue to obfuscation. During compilation,@objis replaced with the actual name of the entity.