Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Missing operand after 'bcba' operator
Message
From
27/01/2010 23:33:22
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows 7
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01446284
Message ID:
01446289
Views:
32
>>Hi all,
>>
>>I am getting this error message when this line is run.
>>
>>
>>Guid SpecificationPK = (Guid)this.GetPrimaryKeyValue(row);
>>
>>// Search for the updated row in the original rows
>>DataRow[] FoundRows =
>>        dsOriginalSpecifications.Tables[this.ElementSpecificationsTable].Select(this.SpecificationFKField +
>>         " = " + SpecificationPK);
>>
>>
>>Something about the way this parses has a problem but I am not sure what it is. Anybody got a clue or how to form this to prevent it?
>>Thanks
>>Tim
>>Update: it is the second line that causes the problem.
>
>This part
>
>Select(this.SpecificationFKField +
> " = " + SpecificationPK);
>
>is not clear to me. What exactly you're doing here? Is PK a character field? If yes, you may want to use single quotes.

It would translate to this:
dsOriginalSpecifications.Tables["ElementSpecifications"].Select("cSpecification_cid = 'guid in here' ")
But Naomi, that might be what I am looking for. The SpecificationPK translates to a guid and there probably needs to be single quotes around it. I will check that
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform