Solved

Missing Operand after the 'cars' operator

Posted on 2011-09-30
3
693 Views
Last Modified: 2012-05-12
Dim Newcars as string="New cars"

Dim dv As New DataView(GetProductsdate(),"Product_Name="&Newcars, "displayorder ASC", DataViewRowState.CurrentRows)
GetProductsdate() returning data table.

I am getting the Syntax error exception.
Missing Operand aMissing Operand after the 'cars' operator fter the 'cars' operator
How to fix it.

Thanks
0
Comment
Question by:KavyaVS
3 Comments
 
LVL 22

Assisted Solution

by:plusone3055
plusone3055 earned 100 total points
Comment Utility
Dim dv As New DataView(GetProductsdate() & "Product_Name="&Newcars, " & "displayorder ASC" &  DataViewRowState.CurrentRows)
GetProductsdate() returning data table.

0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 400 total points
Comment Utility
try :
Dim dv As New DataView(GetProductsdate(),"Product_Name='" & Newcars & "'", "displayorder ASC", DataViewRowState.CurrentRows)
0
 

Author Closing Comment

by:KavyaVS
Comment Utility
Thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now