kellyethridge / VBCorLib

The VBCorLib framework brings many of the powerful .NET classes to VB6.
http://www.kellyethridge.com/vbcorlib/
MIT License
112 stars 28 forks source link

NewStrings method should use Object.ToString instead of directly assigning value. #32

Closed kellyethridge closed 3 years ago

kellyethridge commented 4 years ago

The NewStrings method currently directly assigns each element to a string element in the resulting array. This makes sense since it is expected that only strings are passed in the ParamArray. Unfortunately, if values are passed in that cannot be converted to a string by VB a Type Mismatch error is raised. It seems it would be more beneficial to convert each non-string element using VBCorLib default method of Object.ToString for converting values to a string representation.

kellyethridge commented 3 years ago

Fixed in v4.0.