Jump to content
diogoarsousa

[Resolvido] XML comment cannot appear within a method or a property. The XML comment will be ignored.

Recommended Posts

diogoarsousa

Boa tarde,

Estou a fazer o upgrade do VB.NET 2003 para o VB 2010 e nas seguintes linhas comentadas:

''' Sqlstring = "SELECT DISTINCT Data FROM Leituras " & _

Aparece-me o erro:

«An XML comment cannot appear within a method or a property. The XML comment will be ignored.»

Estou pouco à vontade com o VB 2010.

Gostaria que alguém me explicasse o porquê deste erro e o que é que eu devo fazer para o eliminar.

Obrigado

[vb]

'Vou buscar todos os registos do dia da ZMC que me interessa

Dim rst1 = New ADODB.Recordset()

Sqlstring = "SELECT DISTINCT Data FROM Leituras " & " WHERE ID_ZMC = " & CStr(id_zmc) & frase

 

''' Sqlstring = "SELECT DISTINCT Data FROM Leituras " & _

'''' " WHERE ID_ZMC = " & CStr(id_zmc) & _

'''' " AND Data >= 20051201 ORDER BY Data ASC"

 

''' Sqlstring = "SELECT DISTINCT Data FROM Leituras " & _

'''' " WHERE ID_ZMC = " & CStr(id_zmc) & _

'''' " ORDER BY Data ASC"

 

rst1.Open(Sqlstring, "DSN=zmc_2006", ADODB.CursorTypeEnum.adOpenKeyset, ADODB.LockTypeEnum.adLockOptimistic, ADODB.CommandTypeEnum.adCmdText)

'Se existe mais do que um registo

If rst1.RecordCount > 0 Then

n = 0

Do Until (rst1.EOF)

data = rst1.Fields("Data").value

Call preenche_base_dados(id_zmc, data)

rst1.MoveNext()

Loop

rst1.Close()

'UPGRADE_NOTE: Object rst1 may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="vbup1029"'

rst1 =

Nothing

End If 'rst1.RecordCount > 0 Then

[/vb]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.