Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7715373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:22:07+00:00 2026-06-01T02:22:07+00:00

Working with a Visual Basic.NET console application that features a VERY BASIC natural language

  • 0

Working with a Visual Basic.NET console application that features a VERY BASIC natural language recognition function-it only has to work with specific fields of words so it wasn’t that hard. I got the logic all lay out on paper, but I’ve encountered a problem.

I want the application to check if the user input is only consist of valid words.

When the user inputs something, I used a function to cut it down to only alphanumeric characters, and used the string.split method to create an array that contains separate words the user input. What I wish to do now is to compare the input array to another array (a full set of valid words), and return an error message if the input array contains only elements that exist in the valid words array.

For instance, if all valid words are “ALPHA”, “BETA” and “GAMMA”.
When the use inputs something like “ALPHA BETA”-the program will accept the input.
If the input is “APPLES” then it will return an error message because the string APPLE is not a member of the valid words array.

I hope I’ve made my question clear enough, anyone please help. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:22:09+00:00Added an answer on June 1, 2026 at 2:22 am

    Maybe you are looking for something like the All()-Method, which checks if each element in a collection satisfies a condition. Consider the following example:

    Dim validWords = {"ALPHA", "BETA", "GAMMA"}
    
    Dim thisIsNotValid = {"ALPHA", "APPLES"}.All(Function(word) validWords.Contains(word))
    
    Dim thisIsValid = {"ALPHA", "BETA"}.All(Function(word) validWords.Contains(word))
    

    thisIsNotValid will evaluate to False, and thisIsValid will evaluate to True.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an ASP.NET web application, written using Visual Basic, and I'm trying
I'm working in Visual Basic .NET, and I'm trying to get split to work.
I want to create a custom form (in visual basic .NET) that will stop
I am not quite understanding I am working with Microsoft Visual basic .Net programming
I'm currently working in .NET 2.0 Visual Basic. The current project is an Active
I am working with VS 2005 and using visual basic for coding. How do
I'm using Visual Basic 6 for a legacy project and it's been working fine.
I am working in Visual Studio 2005, .NET 2.0. I need to write an
I am working in Visual C# -> surface -> v2.0 -> Surface Application (WPF)
Actually i am a VB6 developer, switching to VB 2010 (VB.NET), in visual basic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.