Link to home
Start Free TrialLog in
Avatar of JaimeJegonia
JaimeJegoniaFlag for United States of America

asked on

Pickup the first word in VB.NET

Hello Experts,

I have a solution how to  pickup the first word from MS SQL Database value, now I want to pickup the first 2-word in VB.NET from string values.

Examples:

ACME Manufacturing Corp.. > ACME Manufacturing
Lords of the Ring > Lords of
King of the Jews > King of

Thanks.


SOLUTION
Avatar of Alfred A.
Alfred A.
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JaimeJegonia

ASKER

Carl Tawn,

I like your solution. It works!


Thanks.
Thank you guys for the great contribution.
All the samples worked but I like most Carl Tawn's solution - the lesser is the code is the best.