emi_sastra
asked on
Absolete Command For Reading File.
Hi All.
While CSharpImpl.__Assign(bytesR ead, fileStream.Read(buffer, 0, buffer.Length)) <> 0
rs.Write(buffer, 0, bytesRead)
End While
Severity Code Description Project File Line Suppression State
Warning BC40000 'Public Shared Function __Assign(Of Integer)(ByRef target As Integer, value As Integer) As Integer' is obsolete: 'Please refactor calling code to use normal Visual Basic assignment'.
What is wrong with this and how to solve this ?
Thank you.
While CSharpImpl.__Assign(bytesR
rs.Write(buffer, 0, bytesRead)
End While
Severity Code Description Project File Line Suppression State
Warning BC40000 'Public Shared Function __Assign(Of Integer)(ByRef target As Integer, value As Integer) As Integer' is obsolete: 'Please refactor calling code to use normal Visual Basic assignment'.
What is wrong with this and how to solve this ?
Thank you.
From the error message, it appears that the write() method/function returns a value that VB.Net can't ignore. Please try assigning the result to some variable.
ASKER
Hi aikimark,
It is said absolete or may be should change to other vb command?
Thank you.
It is said absolete or may be should change to other vb command?
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.