Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i do this

Status
Not open for further replies.

Unknownpso

Programmer
May 9, 2005
3
0
0
US
ok im programming a program for a game and i want to make a label or text box show data from a address

so for example

the address is 0011022 which is pointing to "Lin" in a hex editor

how do i code the label to accept data from that address and "say" lin or in a text box?
 
If i am understand your question you want to seek to a position in a data file and get some data ??

dim iFile as Integer
Dim RetStr as string
open "Filename" for binary as ifile

seek iFile,YourPos
RetStr = space(3) 'Set the size of the string to 3 bytes
get iFile,,RetStr

close ifile

Text1.text = RetStr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top