Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Instr() error!!

Posted on 1998-06-13
5
Medium Priority
?
297 Views
Last Modified: 2008-03-06
Hello
I try this, but gets an invalid procedure call or argument.
Do YOU know what I am doing wrong??


front = FreeFile
Open App.Path & "\temp\" & "file000.htm" For Input As #front

Do While Not EOF(front)

  Line Input #front, forside
  forside = LCase(forside)
  anker = InStr(0, forside, "<a href=")
  If anker < 0 Then
    ref = Mid$(forside, anker, InStr(anker, forside, ">", vbTextCompare) - anker)
  End If
 
Text1.Text = ref
Loop

---
that's it
0
Comment
Question by:freak022398
[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
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
marti earned 120 total points
ID: 1463224
anker = InStr(1, forside, "<a href=")
0
 

Expert Comment

by:topol
ID: 1463225
Where does it say it happenes?
What line?

0
 

Author Comment

by:freak022398
ID: 1463226
yep, that line.

No error now, but no input either....in the text1.text
??
what to do?
0
 

Expert Comment

by:topol
ID: 1463227
Try to put forside=Str(forside) before Instr function.
And whether reject or accept marti's question.
0
 

Author Comment

by:freak022398
ID: 1463228
ok marti
got it working
thanks!!
/freak
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

721 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