Book a Demo

Author Topic: VB.NET attribute with Single Quote  (Read 3160 times)

Italstudio

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
VB.NET attribute with Single Quote
« on: March 06, 2003, 07:30:47 am »
Hy,

When I execute "import directory structure" of a VB.NET project that contains a class
with the following property:

<Description("Determina se il testo all'interno del controllo può essere modificato oppure no"), _
Category("ItsExtended")> _
Public Property [ReadOnly]() As Boolean
  ...
End Property

I obtain the following error:

DAO.Database [3075]
Syntax error (missing operator) in query expression ...

The cause of the problem is the presence of the single quote (') inside of the description.  

EmmaN

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
  • Sparx Support
    • View Profile
Re: VB.NET attribute with Single Quote
« Reply #1 on: April 07, 2003, 06:13:40 pm »
Hi

Have you tried this workaround? Substitute the single quote for the ASCII equivalent: Chr(39). So your description string would become:

"Determina se il testo all" & Chr(39) & "interno del controllo può essere modificato oppure no"

It's worth a try...