> Just curious, why is there not a vartoint function?
Because assignment solves that problem just fine.
var
V: Variant;
i: integer;
begin
V := 6;
i := V;
--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
All the great TeamB service you've come to expect plus (New!)
Irish Tin Whistle tips: http://learningtowhistle.blogspot.com
> What if the variant is null when you try this statement?
You can test for that. If you need a routine, write it; it's
completely trivial.
--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
How to ask questions the smart way:
http://www.catb.org/~esr/faqs/smart-questions.html
You can do the same process above with strings, but it is not reliable.