How to Compare User-Defined Type Variables in Visual Basic (88551)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q88551 SUMMARY
The relational operators (=, <>, and so on) do not support the comparison
of user-defined type variables. However, you can compare user-defined type
variables by converting the variables to strings, and then comparing the
strings. The Windows version 3.1 API hmemcpy can be used to convert a
user-defined type variable to a string.
The hmemcpy API was introduced in Microsoft Windows version 3.1, so this
technique requires Windows version 3.1 or later.
| Modification Type: | Major | Last Reviewed: | 12/12/2003 |
|---|
| Keywords: | KB88551 |
|---|
|