Web Hosting Talk







View Full Version : mixing variable types in VB


Radix
12-12-2002, 06:58 PM
Taking finals tomorrow and the program im making in Visual Basic has to fit an integer variable and a string variable in one lable together. How can I do this?

EX:

strText: Your average is

intTotalAverage: 45

VB gives an error message when you try to mix variable types for obvious reasons.

filburt1
12-12-2002, 07:05 PM
lblSomething.Caption = strText + CStr(intTotalAverage)