473,386 Members | 1,715 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,386 software developers and data experts.

Finding words in huge list!

3
Hey, i have a textfile hosted on a website which is a huge list (over 2000 lines).
I need to get some data from it but it would take forever for me to manually remove the characthers i dont want, so i tried to use Inet and split the data then place the words i want into a textbox.
I only need the words that are between "furni_" and "_name"
On the list it looks like this
"Furni_*CODE_I_NEED*_name"
this is what i have tried

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2. Dim StrData As String
  3. Dim Code As String
  4.  
  5. lblStatus.Caption = "Status: Working..."
  6. 'Download Source Code As StrData
  7. StrData = Inet1.OpenURL("URL OF THE LIST I NEED TO CHECK")
  8.  
  9. 'Find Code That i need
  10.     Code = InStr(StrData, InStr(StrData, "furni_") + Len("furni_"))
  11.     Code = InStr(Code, 1, InStr(1, Code, "_name") - 1)
  12.     Form2.Show
  13.     Form2.Text1.Text = Code
  14. End Sub
Unfortunatly that did not work.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2. Dim StrData As String
  3. Dim Code As String
  4.  
  5. lblStatus.Caption = "Status: Working..."
  6. 'Download Source Code As StrData
  7. StrData = Inet1.OpenURL("URL OF THE LIST I NEED TO CHECK")
  8.  
  9. 'Find Code That i need
  10.     Code = Split(StrData, "furni_")(1)
  11.     Code = Split(Code, "_name")(0)    Form2.Show
  12.     Form2.Text1.Text = Code
  13. End Sub
The above also didnt work

So if anybody can help please post?
Sep 10 '06 #1
0 1172

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

Similar topics

3
by: Noam Dekers | last post by:
Hi all, I would like to find a word stored in a text file. Structure: I have one file named keyWords.txt that stores some key words I'm interested in finding. In addition I also have a file...
6
by: Christoph Pingel | last post by:
Hi all, an interesting problem for regex nerds. I've got a thesaurus of some hundred words and a moderately large dataset of about 1 million words in some thousand small texts. Words from the...
7
by: Ben | last post by:
Hi In a list I have a number of soccer players. Each player has a different rating for attacking, defending, midfield fitness and goalkeeping. I have devised a while loop that goes through...
12
by: teoryn | last post by:
I've been spending today learning python and as an exercise I've ported a program I wrote in java that unscrambles a word. Before describing the problem, here's the code: *--beginning of file--*...
20
by: dmurray14 | last post by:
Hey guys, I'm a C++ newbie here - I've messed with VB, but I mostly stick to web languages, so I find C++ to be very confusing at times. Basically, I am trying to import a text file, but I want...
1
by: avik1612 | last post by:
Hi, I have created a program to find text files in a particular directory or folder. and to find a particular word in that files i finding it difficult to put the list in an array and finding...
0
NeoPa
by: NeoPa | last post by:
Introduction: This seems like a very straightforward topic. Why would anyone need help finding MS Access Help related to this topic? I can't really answer that except to say that I know from...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
3
by: Bouzy | last post by:
I have a list of words and am trying to replace all the numbers in my list with whitespace. for word in words: numbers = re.search('+', word) word = clearup(word) if word in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.