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


Position of "/"...

Posted on 2000-03-16
Medium Priority
Last Modified: 2010-05-02

Dim sText as String
Dim iPos as Integer

sText = ""

which line of code will assign the position of the last slash(/) to the variable iPos ?

1)iPos = Instr(1,sText,"/",vbCompareReverse)
2)iPos = Instr(-1,sText, "/")
3)iPos = InstrRev(sText, "/")
4)iPos = RevInstr(-1,sText,"/")

Which is true option out of  4 ?

Question by:bhavesh55
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
LVL 20

Expert Comment

ID: 2625316

Author Comment

ID: 2625351
LVL 20

Accepted Solution

hes earned 20 total points
ID: 2625415
see above
LVL 21

Expert Comment

ID: 2637730
I think you missed a bit, hes:

Dim bhavesh55 as A_15W_Light_Bulb
iPos = Bottom_Of_Class(F-,bhavesh55,"!")

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

670 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