Solved

Problem encounter in VB AsynRead

Posted on 1997-11-30
1
231 Views
Last Modified: 2008-03-06
I am developing a actice-x control which can perform downloading  . But everytime I get this error message : A Property or method call cannot include a reference to a private object, either as a argument or as a return value .

Below is my code :

Command1_Click()
   a = SourcePath
   SourcePath = a
End Sub

Public Property Get SourcePath() As String
    SourcePath = m_SourcePath
End Property

Public Property Let SourcePath(ByVal New_SourcePath As String)
     
       MstrPictureFromURL = New_SourcePath
        ' If program is in run mode, and the URL string
        ' is not empty, begin the download.
       AsyncRead New_SourcePath, vbAsyncTypePicture, _
            "SourcePath"

 PropertyChanged "SourcePath"
End Property
0
Comment
Question by:pcseah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 8

Accepted Solution

by:
mrmick earned 100 total points
ID: 1443098
I'm assuming the problem is in the line:

AsyncRead New_SourcePath, vbAsyncTypePicture, "SourcePath"

Try this instead (parens around New_SourcePath):

AsyncRead (New_SourcePath), vbAsyncTypePicture, "SourcePath"

What is the "MstrPictureFromURL"?
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month6 days, 23 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question