Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Visual Basic 6 Picture box question

Hi

Does any one know if its possible to use variables in picture box file paths?

for example
picture1.picture = loadpicture(c:\program files\vb program\fileno-(Variable).whatever)

and if you can use them what is the syntax?

Thanks in advance for your help.

James:)
[314 byte] By [jay88] at [2007-11-11 7:19:05]
# 1 Re: Visual Basic 6 Picture box question
Sure, a file path is just a String:

Set Picture1.Picture = LoadPicture("c:\program files\vb program\fileno-" & variable & ".whatever")
Phil Weber at 2007-11-11 17:27:06 >
# 2 Re: Visual Basic 6 Picture box question
Thanks for Your help
jay88 at 2007-11-11 17:28:07 >