SunQuest
 
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
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  
Old July 19th, 2004, 06:38 PM
Kristin Kristin is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 56 Kristin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
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

Reply With Quote
  #2  
Old July 19th, 2004, 06:44 PM
Qazzian Qazzian is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Toronto, Canada
Posts: 15 Qazzian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Qazzian Send a message via MSN to Qazzian
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.

Reply With Quote
  #3  
Old July 19th, 2004, 10:34 PM
shinu shinu is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 27 shinu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 5 m 40 sec
Reputation Power: 0
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?

Reply With Quote
  #4  
Old July 20th, 2004, 09:36 AM
Kristin Kristin is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 56 Kristin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
thanks guys! works like a charm!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > loading an image file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway