Simple caption question

NDaphid
07-21-2003, 09:16 AM
Call me stupid, but how do you combine a string with a variable for a caption? Example:

Private Sub Command_click
label.caption = "Your score:" 'variable score as integer goes here?
End Sub

Thanks!

David

Syko10-96
07-21-2003, 09:20 AM
Hello,

label.caption = "Your score: " & varNameGoesHere

Hope this helps :)

NDaphid
07-21-2003, 09:22 AM
Hello,

label.caption = "Your score: " & varNameGoesHere

Hope this helps :)

It sure does!

Thank you.

wengwashere
07-21-2003, 09:26 AM
Call me stupid, but how do you combine a string with a variable for a caption? Example:

Private Sub Command_click
label.caption = "Your score:" 'variable score as integer goes here?
End Sub

Thanks!

David


label.caption = "Your score: " & cstr(YourINTVariable)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum