473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to make backword search in text

this command makes forword search in text:

instr(begining of search in integer,the text, the word you want search for)

my question is how to make backword search when the compiler in a certain place

thank you
Mar 12 '08 #1
5 1426
Killer42
8,435 Expert 8TB
What version of VB are you using?

And can you please explain in more detail what you mean by a "backward search"? Do you want it to look for the word appearing in reverse sequence (such as typing "hello" and searching for "olleh")? Or do you want it to start at the end of the string and find the last occurence instead of the first, or what?
Mar 14 '08 #2
What version of VB are you using?

And can you please explain in more detail what you mean by a "backward search"? Do you want it to look for the word appearing in reverse sequence (such as typing "hello" and searching for "olleh")? Or do you want it to start at the end of the string and find the last occurence instead of the first, or what?
i use vb6

i mean (by backword search) to begin the search from the last for example (i will go to school to learn more....) i want to find the last time the word (to) happened then the next backwordly
Mar 16 '08 #3
i use vb6

i mean (by backword search) to begin the search from the last for example (i will go to school to learn more....) i want to find the last time the word (to) happened then the next backwordly
Mar 16 '08 #4
Killer42
8,435 Expert 8TB
I believe that the InstrRev() function will be useful here. I haven't used it before, but I just tried these two examples in the immediate window and got the responses shown...
Expand|Select|Wrap|Line Numbers
  1. ? instrrev("This is a test and a test","test")
  2. 22
  3.  
  4. ? instrrev("This is a test and a test","test",22)
  5. 11
  6.  
Mar 17 '08 #5
I believe that the InstrRev() function will be useful here. I haven't used it before, but I just tried these two examples in the immediate window and got the responses shown...
Expand|Select|Wrap|Line Numbers
  1. ? instrrev("This is a test and a test","test")
  2. 22
  3.  
  4. ? instrrev("This is a test and a test","test",22)
  5. 11
  6.  
iam sorry for opening new thread and for spelling mistakes (iam from egypt and my mother tongue is arabic)
and thank you for your useful reply
thank u
Mar 17 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Akseli Mäki | last post by:
Hi, Hopefully this is not too much offtopic. I'm working on a FAQ. I want to make two versions of it, plain text and HTML. I'm looking for a tool that will make a plain text doc out of the...
67
by: Sandy.Pittendrigh | last post by:
Here's a question I don't know the answer to: I have a friend who makes very expensive, hand-made bamboo flyrods. He's widely recognized (in the fishing industry) as one of the 3-5 'best' rod...
10
by: DataBard007 | last post by:
Hello Access Gurus: I use Win98SE and Access97. I just built a simple Access97 application which holds all contact information for my personal contacts, such as first name, last name, address,...
2
by: FeelGoodInc | last post by:
I will attempt to describe this, hopefully it will make sense. Say there is an input text box for a web site's name, and a checkbox for say whether or not they have a search function. Also, there...
7
by: carterweb | last post by:
This is how I do it now. 1. Determine the dimensions of the rectangle. 2. Set a my font size to a fixed maximum size. 3. Apply the font my string and measure the string using the graphics...
1
by: xahlee | last post by:
Elisp Tutorial: Make Google Earth Xah Lee, 2006-12 This page shows a example of writing a emacs lisp function that creates a Google Earth file, and creates a link to the file, as well a link...
1
by: ahmed222too | last post by:
i use vb6 i want to make a backword search in text file i mean (by backword search) to begin the search from the last for example (i will go to school to learn more....) i want to find the last...
5
by: programmerboy | last post by:
I never had this kind of issue before and it is completely surprising. I have a usercontrol where I need 2 forms to make 1 form. When I have only 1 form it submits the page to itself. I have spent...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.