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

  • SEARCH
  • Home
  • 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 9019107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:41:50+00:00 2026-06-16T04:41:50+00:00

I’m new to using datasets in VB and I’ve been unable to find guidance

  • 0

I’m new to using datasets in VB and I’ve been unable to find guidance on achieving the following:

Some descriptions in the dataset are too long, is there a way to take the first 10 characters of a description?

I’ve tried using:

dataSet.Tables("statement-data").Rows(0).Item(1) = Left(dataSet.Tables("statement-data").Rows(1).Item(1).ToString)

But I get a “Public Property Left As Integer has no parameters and its return type cannot be indexed” error

Example Data

Dataset Table: statement-data

Date        Description                         Debit/Credit    Amount
01122012    Computer Equipment for North Office D           1000.00
01122012    Coffee                              D           25.68
02122012    Payment for Service                 C           1500.00

If anyone can help, or point me towards any good websites/guidance, that would be awesome.
Thanks
Martyn

  • 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-16T04:41:51+00:00Added an answer on June 16, 2026 at 4:41 am

    The reason you are getting this error is that your code is in a form (or user control). System.Windows.Forms.Form has a Left property, so your Left is referring to Form.Left instead of Microsoft.VisualBasic.Strings.Left. To get past the error, you can:

    • Explicitly qualify the use of the Left method with Microsoft.VisualBasic.Strings.Left
    • Use the Substring method instead
    • Put your code in a separate class or module where Form‘s properties won’t conflict with it
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm fairly new to database programming in WinForms, and have been using BindingSource, DataSet,
I am unable to fill a typed dataset Using reader as New StringReader(My.Resources.sampledata) typedDataset.ReadXML(reader)
I heard that microsoft does not recommend using DataSets and DataTables in new projects.
I don't use DataSets much. Usually find myself using an ORM or just a
I am new to Linq. I have been using strongly typed data-sets but like
I'm using the following code to import a simple excel spreadsheet into a dataset
I've been using ORM's for so long, I appear to have forgotten most of
I'm new using the excellent stuff of css twitter bootstrap and having a problem,
I'm new using Yii framework. I show a list a checkbox. But it's not
I still new using Asp.net with vb.net Protected Sub login_Click(ByVal sender As Object, ByVal

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.