Solved

Position of "/"...

Posted on 2000-03-16
4
228 Views
Last Modified: 2010-05-02
Code:

Dim sText as String
Dim iPos as Integer

sText = "www.vb.com/support/developers/vb/stringfunctions"

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 ?

Thanks,
bhavesh
0
Comment
Question by:bhavesh55
  • 2
4 Comments
 
LVL 20

Expert Comment

by:hes
ID: 2625316
3
0
 

Author Comment

by:bhavesh55
ID: 2625351
Thanks
0
 
LVL 20

Accepted Solution

by:
hes earned 5 total points
ID: 2625415
see above
0
 
LVL 20

Expert Comment

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

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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now