When creating a new module using the module template , using C" as language, the produced code has twoo syntax errors:
- Error 102 Newline in constant C:\..\SqlDataProvider.cs 73 17
- Error 103 Too many characters in character literal C:\..\SqlDataProvider.cs 73 17
Here's where the code is wrong:
If (_connectionString.Length == 0)
{
' Use connection string specified in provider
_connectionString = objProvider.Attributes["connectionString"];
}
The If must be in lowercase: if
The ' for commenting must be //
It seems clear that those errors comes from the translation VB->C# :-)
Eric