stringfunctie Vb2005

G

Georg

Hallo,

ik zou in een zoekveld een paar letters van ene Familenaam ingeven samen met
een paar letters van een voornaam.

bvb berte,be. maw alle voornamen waar "berte" in voorkomt en alles waar "be
in voorkomt in de voornaam.
Mijn vraag is hoe ik dit kan opsplitsen. Ik gebruik maak gebruik van Visual
Basic 2005 en ben bezig met een databank Alles wordt weergegeven in een
Winform. Hoe zou ik de gegeven tekst kunnen opsplitsen in alles wat voor de
komma staat en alles wat na de komma staat.

mvg Georg
 
C

Cor Ligthert[MVP]

Hallo Georg,

In these dotNet newsgroups are despite there is not in the name any EN the
English language used.

It is very international (Chinese, Dutch, Indian, British and from the USA)

A newsgroup in Dutch for Development there is a newsgroup named
Microsoft.public.nl.devtools but it is very rarely used.

In the newsgroup
Microsoft.public.dotnet.languages.vb are more Dutch speaking people active
(Belgian and Dutch) although they use English.

There are more possibilities to solve your problem.
In VB the quickest for strings is the Instr function.

I use mostly the string.IndexOf or one of the other methods from the string
class.

To split a string there is the string.Split method.

Simple have a look for that on MSDN

Cor
 
G

Georg

Hi Cor,

Sorry, I've posted indeed in a wrong newsgroup. I was to fast to post it.
My excuses.

I Found it indeedn in the help , but i stuggle if there is no "," in the
searchstring.

regards, Georg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top