Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Missing operand after 'bcba' operator
Message
De
27/01/2010 23:36:09
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
27/01/2010 23:33:22
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows 7
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01446284
Message ID:
01446290
Vues:
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

Yep, that did it; now onto the next error in this same batch. Thanks
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform