SRL Archive - Discussions and Debates

Lookie what I found :O


Miitchyy

2007-08-03 09:03:35

program Debug;

procedure Debug(What: Variant);
begin
Writeln(What);
end;

begin
Debug(19.29080);
Debug('19.29080');
Debug(19);
Debug(True);
Debug(Integer);
Debug(String);
Debug(Extended);
Debug(Cardinal);
Debug(TIntegerArray);
end.

Integer, String, Extended, Cardinal and all other Types have numbers :O
I never knew that.

(The Debug procedure is something I made while I was bored)

Bobarkinator

2007-08-03 09:14:23

Most people know about this ;) Danrox has already posted this function.
http://www.srl-forums.com/forum/writeln-t9613.html?t=9613

danrox2004

2007-08-03 11:28:52

From: bobarkinator
Most people know about this ;) Danrox has already posted this function.
http://www.srl-forums.com/forum/writeln-t9613.html?t=9613


Ty, but i think hes saying that if you writeln integer, it comes up with the number 11 and so on… Try it, its pretty cool

Bobarkinator

2007-08-03 11:38:42

Kinda like this? http://www.villavu.com/forum/showthread.php?t=11787

Wanted

2007-08-03 13:48:02

http://www.delphibasics.co.uk/Article.asp?Name=Numbers
http://www.delphibasics.co.uk/Article.asp?Name=Text

bullzeye95

2007-08-03 15:05:48

Whoa? Why does it come up with 11 for integer, 9 for string, 5 for extended, 10 for cardinal, and 22 for TIntegerArray?

(if the answer is in those links, I didn't find it)

Special Ed

2007-08-12 00:07:31

Ummm… whats a Cardinal, other than a bird, or a variable type…. please be specific.