Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

Absolete Command For Reading File.

Hi All.

  While CSharpImpl.__Assign(bytesRead, 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.
Avatar of aikimark
aikimark
Flag of United States of America image

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.
Avatar of emi_sastra
emi_sastra

ASKER

Hi  aikimark,

It is said absolete or may be should change to other vb command?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial