Forum > FPC development

How can I use: "VarIsNull and VarIsEmpty" in Lazarus

(1/1)

jorgealfredoramirez:
I have the following code from Delphi:

if VarIsNull(ovFolder.Items) or VarIsEmpty(ovFolder.Items)} then Continue;

In Lazarus this code give me the error: Identifier not found "VarIsNull" and "VarIsEmpy". The rest of the code from delphi works fine.

Help me please!!
Jorge

marcov:
It works the same as in non-ancient (D6+) versions of Delphi: add variants  to your uses clause

jorgealfredoramirez:
Thank you,

uses
  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, ComObj, Variants ;


Now everything is working...

Navigation

[0] Message Index

Go to full version