CStr for Pascal
Date: 03.20.14 - 1:02am
One thing I love about vb6 is that it does a lot of repetitive things for you, such as auto converting variables where it makes sense. This frees you from having to deal with minutia.
In VB6 the following is perfectly valid: str = "Found: " & intCount & " instances"
In Pascal this requires: str := 'Found: ' + IntToStr(intCount) + ' instances';
VB6 has the universal CStr() to convert any var type to string, In Pascal each type has their own conversion method.
Below is a universal CStr() function for pascal that also includes support for arrays (unlike the VB6 counterpart).