Gala
2012-04-23 15:37:42
Maybe this problem is really noobish, but I can't figure it out.
Is there a way to check if a var has a value? Like in PHP 'isset'?
Thx, Gala
Is there a way to check if a var has a value? Like in PHP 'isset'?
Thx, Gala
2012-04-23 15:37:42
2012-04-23 15:40:14
if Length(var) > 0 then //if it has a value, it should be greater than 0
2012-04-23 15:51:40
2012-04-23 15:55:20
From: Gala
Is this not only for arrays?
Does it work for integers and strings, too?
procedure Test;
var
day, pol: Integer;
begin
day := Length(pol);
if day > 0 then
Writeln('Hi!');
end; 2012-04-23 15:56:11
From: Gala
Is this not only for arrays?
Does it work for integers and strings, too?
if(variable = 0)then...
2012-04-23 15:57:38
2012-04-23 16:01:04
2012-04-23 16:20:56
From: mixster
What kind of craziness are you talking about?