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

Help parsing a textbox

Hello, what I need help with is probably simple for most of you fluent with vb.net, I have been learning for the last 6 months.
What I am trying to do here is search a multi-line textbox that contains the source of a particular website.

what I would like is something like this but i do not know how to right it like i need
Expand|Select|Wrap|Line Numbers
  1. Dim MyString, FirstWord, LastWord, MidWords As String
  2. MyString = "Mid Function Demo"   ' would be the textbox
  3. FirstWord = Mid(MyString, 1, 3)   ' Returns "Mid".
  4. LastWord = Mid(MyString, 14, 4)   ' Returns "Demo".
  5. MidWords = Mid(MyString, 5)   ' Returns "Function Demo". 
this function works fine only when you define len.

what I need is a function that will do something like this,
"note obviously interpreted code"
Expand|Select|Wrap|Line Numbers
  1. Dim text, A,B,C as string
  2. text = textbox1
  3. A = "<body>"
  4. B = "information between A and C being of variable len"
  5. C = "</body>"
  6. textbox2 = B
I am quite sure you can figure out what i want from there,
I do not want anything like,
remove "<>?|\?()}{][" etc. please
Nov 26 '09 #1
1 2428
Frinavale
9,735 Expert Mod 8TB
I don't know what you want?
Have you considered using regular expressions?
If you're dealing with HTML then have you considered using one of the XML tools that are part of the .NET framework to help you achieve whatever it is you want to achieve?
Nov 26 '09 #2

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

Similar topics

1
by: VMI | last post by:
How can I parse the string in a web textbox? In Window, the textbox.Lines property parses the string in a multi-line textbox and passes it to an array. Is this possible with the Web textbox? ...
5
by: Pat Ford | last post by:
Hi All; I'm working on a data acquisition system, the system runs on Linux, and the config files are Xml like. eg <CHANNELS> <META> Short Label,textbox,width=5,Alpha,required Long...
6
by: drec | last post by:
I am just learning Javascript and I would like to create a basic form that gives me two options. This will be using either checkbox or radio input type, however I would like the second option to...
7
Wagsy
by: Wagsy | last post by:
Hi All, I have a small form that allows scale weigh data to be diplayed in a textbox. i can communicate with the scale - tare, zero etc. how do i filter the weight string or i think it may be...
7
by: cephal0n | last post by:
Hi there! I've been racking my brains out for 4 days and still not getting why is msaccess stubborn about string parsing, first I have a table named tblItems, this table has columns: ProductItem,...
0
by: taa | last post by:
Hi there I’m trying to come up with a smart way of parsing content from textboxes in C#. I have about 7-10 boxes with different content; dates, times, numbers and text that has to be parsed and...
0
by: Miha | last post by:
Hello im new here and to programing. At the moment i am trying to code a program that would load a webpage in Textbox, then parse number between var lv_screenshots =...
2
by: pipeme | last post by:
Hi I got a grid of textboxes which all need to do the same function on their doubleclick event, however the code they call needs to copy the data in the textbox to another textbox. I don't...
2
by: embz | last post by:
this post concerns three pages. 1. this page: http://www.katherine-designs.com/sendemail.php i get the following errors: a lot of it seems to deal with the PHP code i inserted to the page....
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: 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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.