|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
loading an image file
Can anyone se what I am doing wrong? I am using visual basic....as interface for a SQL server 2000 database. I am trying only to display an image that I have stored on the server ( in a LAN environment). All I am storing in the database is the location. (for now)
I need to "complete" the path with a parameter I would like my users to input on the form. Here is my command code: ( I am getting invalid qualifier as the error message) Private Sub Command1_Click() Dim labreport As String Set labreport.Text = txtVar Picture1.Picture = LoadPicture("\\Mro\mro\TEST\" & "labreport" & ".bmp") End Sub I would like to enter through the form a variable to "fill in" the rest of the path name....largely - labreport. Where am I going wrong? thanks k |
|
#2
|
|||
|
|||
|
Picture1.Picture = LoadPicture("\\Mro\mro\TEST\" & labreport & ".bmp")
End Sub Try that. It looks like you had an extra set of quotes around the labreport variable. |
|
#3
|
|||
|
|||
|
i think your problem is here.
Dim labreport As String Set labreport.Text = txtVar does a string variable take a text property ? try changing it to, Dim labreport As String labreport = txtVar.Text and remove the quotes around the labreport variable as Qazzian said . howzzat? |
|
#4
|
|||
|
|||
|
thanks guys! works like a charm!
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > loading an image file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|