On the issue of VB, who can help answer what??

Users questions:I have written some code, but the problem lies in using the following code: DimcColorAsLongcColor = Picture1.Point (0,0), after obtaining the color image pixels, cColor value is 16 hexadecimal numbers, such as "16235547 "with the following code: Text1.Text = cColor displayed in the Text control value is" 16235547 ", but with the following code: DimnameAsString, filenumAsInteger, reclengthAsLongname = App.Path &"*"&" test reclength = Len (cColor) filenum = = FreeFileOpennameForRandomAsfilenumLenreclengthPutfilenum, LastRecord, cColor generate random file test, but the contents of these documents is not cColor the original value "16235547", has become a "1BBCF700". Is thisWhy? According to the books on the Picture1.Point (x, y) returns a process of explanation is that the image coordinates (x, y) of the pixel color of Long type (4) of the 16 hex value. I need is this value, want it stored in the file, but Why become aOther values of? Which expert help me solve this issue again ah??
Experts answer:cColor = Picture1.Point (0,0) to obtain the value of "16235547", this value is certainly decimal, hexadecimal, if you want 16 The number of needed Hex function to convert, the function returns a string. I think the result because this result: Picture1.Point (0,0) returns 16 similar & HF7BC1B hex value, while the text box value is a string, the system uses He forced transferx function should be able to solve the problem. Of course cColor have to redefine the type, String. DimcColorAsStringcColor = Hex (Picture1.Point (0,0)), after obtaining the color image pixels, cColor value is 16 hexadecimal numbers, such as "16235547", with the following code: Text1.Text = cColor
  • This information provided by the users.Thanks!