J
Jon Davis
Hi guys!
Just wanted to let you all know that I created a Variant structure, inspired by the old VB6 days.
// Here is an example of use:
// start with a string of "1"
Variant da = new Variant("1");
// add an integer of 2, becomes 3
da += 2;
// add a float of 1.3, becomes 4.3
da += 1.3F;
// add a string, becomes "4.3wow"
da += "wow";
// write "4.3wow"
Console.WriteLine(da);
I might actually use this puppy.
Anyway, here it is, source code and all, take a look and be sure to give it 5 stars if you find it useful.
http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=2854&lngWId=10
Regards,
Jon Davis
Just wanted to let you all know that I created a Variant structure, inspired by the old VB6 days.
// Here is an example of use:
// start with a string of "1"
Variant da = new Variant("1");
// add an integer of 2, becomes 3
da += 2;
// add a float of 1.3, becomes 4.3
da += 1.3F;
// add a string, becomes "4.3wow"
da += "wow";
// write "4.3wow"
Console.WriteLine(da);
I might actually use this puppy.

Anyway, here it is, source code and all, take a look and be sure to give it 5 stars if you find it useful.
http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=2854&lngWId=10
Regards,
Jon Davis