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 4035902
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:09:24+00:00 2026-05-20T12:09:24+00:00

Seems begineer but i really do not understand what these lines of code saying,

  • 0

Seems begineer but i really do not understand what these lines of code saying, since I’m kinda like newbie in datatable and dataview or such stuff!

DS.Tables("ActivityLookup").DefaultView.RowFilter = "[Description] =" & EncodeToText(oClass.moGen.Item("DESCRIPTION"))

If DS.Tables("ActivityLookup").DefaultView.Count = 0 Then

EncodeToText will encoed the text given from DESCRIPTION field in the database and convert it to string. So it is filtering it but only certain description fields, how ever by some strange reasons that second line is not working properly.

  • 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-05-20T12:09:25+00:00Added an answer on May 20, 2026 at 12:09 pm

    The first line is setting a filter on the table called "ActivityLookup" in a DataSet called DS. When setting a filter using the RowFilter property on the DefaultView, you’re telling the dataset to filter the contents of the DefaultView according to some criteria. In your case, the filter is saying:

    Show me all of the rows which have a
    description that matches the value of
    oClass.moGen.Item("DESCRIPTION")

    I don’t know what that value is 🙂

    The second line checks to see if any rows exist in the default view after the filter has been applied. In essence, it’s saying “Are there any rows that have that description?”.

    Hope that helps.

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

Sidebar

Related Questions

I'm not a beginner at C# but I really need to increase my understanding,
Seems to be a problem that many people have, but all the answers I
Seems that This will be an easy question for you but this problem is
Seems like i need some help with a project. I have a routine ,
Seems, it's common task, but I haven't found solution. I need to calculate number
Seems like there should be... Right now it just seems like magic that you
Seems like cuke doesn't show the full error message (at least when problem occurs
Seems like a standard approach for an ioc when given a scenario like (C#
Seems everyone recommends virtualenv for multiple python versions (on osx), but does it even
I really like WPF because of its awesome skinning support by changing resourcedictionaries on

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.