Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
How can I use: "VarIsNull and VarIsEmpty" in Lazarus
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Duplicated icon in the Wi...
by
w click
[
Today
at 12:39:48 pm]
Status of FPC 3.4.0 or FP...
by
dbannon
[
Today
at 12:34:20 pm]
How to start LAMW emulato...
by
RaketeMike
[
Today
at 12:16:26 pm]
We are starting to use La...
by
Martin_fr
[
Today
at 12:05:21 pm]
lazarus information aand ...
by
LeP
[
Today
at 11:19:12 am]
Free Pascal for a small e...
by
dbannon
[
Today
at 10:36:13 am]
Howto : Double buffer wit...
by
biologic
[
Today
at 09:22:37 am]
How to determine the unkn...
by
LV
[
Today
at 08:28:40 am]
[ANN] fpGUI Toolkit v2.0....
by
Seenkao
[
Today
at 07:40:58 am]
My AGGPas examples
by
Graeme
[
Today
at 02:52:48 am]
Reporting a Bug? in Strin...
by
Bart
[
Today
at 01:48:34 am]
QuestionDlg does strange ...
by
Martin_fr
[
Today
at 01:16:29 am]
SoundTracker Player Libra...
by
hukka
[
Today
at 01:01:39 am]
it2play - IT/S3M module r...
by
hukka
[
Today
at 12:47:05 am]
Reflection and Review in ...
by
jwdietrich
[February 14, 2026, 09:53:31 pm]
fpGUI Toolkit v2.0.1 has ...
by
cdbc
[February 14, 2026, 09:32:46 pm]
LazReport
by
dseligo
[February 14, 2026, 08:51:08 pm]
how to enable multihelper...
by
PascalDragon
[February 14, 2026, 06:30:05 pm]
Fast Canvas Library V1.05...
by
backprop
[February 14, 2026, 05:46:10 pm]
Are the source files for ...
by
Derz
[February 14, 2026, 05:12:27 pm]
[ANN] PasBuild 1.3.0 rele...
by
Graeme
[February 14, 2026, 05:02:32 pm]
Frustrating Error When us...
by
jamie
[February 14, 2026, 04:22:29 pm]
; after then
by
Curt Carpenter
[February 14, 2026, 04:09:29 pm]
Help needed compiling
by
jamie
[February 14, 2026, 03:58:08 pm]
Does not go out of functi...
by
Martin_fr
[February 14, 2026, 03:43:52 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How can I use: "VarIsNull and VarIsEmpty" in Lazarus (Read 7822 times)
jorgealfredoramirez
New member
Posts: 7
How can I use: "VarIsNull and VarIsEmpty" in Lazarus
«
on:
June 23, 2016, 11:53:05 pm »
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
Logged
marcov
Administrator
Hero Member
Posts: 12645
FPC developer.
Re: How can I use: "VarIsNull and VarIsEmpty" in Lazarus
«
Reply #1 on:
June 24, 2016, 12:05:41 am »
It works the same as in non-ancient (D6+) versions of Delphi: add variants to your uses clause
Logged
jorgealfredoramirez
New member
Posts: 7
Re: How can I use: "VarIsNull and VarIsEmpty" in Lazarus
«
Reply #2 on:
June 24, 2016, 04:22:49 am »
Thank you,
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, ComObj,
Variants
;
Now everything is working...
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
How can I use: "VarIsNull and VarIsEmpty" in Lazarus
TinyPortal
© 2005-2018