Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Missing operand after 'bcba' operator
Message
From
27/01/2010 23:36:09
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
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:
01446290
Views:
31
>>>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

Yep, that did it; now onto the next error in this same batch. Thanks
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform