[Help]Reading address values and saving them? - VB

Posts 1–15 of 18 · Page 1 of 2
[Help]Reading address values and saving them? - VB
So I need to find a way to be able to read an address's value and then save it as an integer. Any ideas?
I'm not such of a wiz when it comes to memory handling and stuff in VB

EDIT - I love typos <3
How about moving it to VB section (smarter people there)

What you say?

+I think you wanted to say ,,values'' not ,,vakues''
/moved

/title fixed
Well, i'm not sure about reading the address values, but saving them is quite easy.
More details?
Well basically I want to have an address:
Example - &H1AA5854
My program is going to save that address' value and then change it to 255. When the user decides to revert it to the original value, it will read the saved value and change it back.

Like if the address's value was 0 and then it was changed to 255. When it is restored it will read the original value (0) and change it back.

You kinda get what I mean?
Quote Originally Posted by master131 View Post
Well basically I want to have an address:
Example - &H1AA5854
My program is going to save that address' value and then change it to 255. When the user decides to revert it to the original value, it will read the saved value and change it back.

Like if the address's value was 0 and then it was changed to 255. When it is restored it will read the original value (0) and change it back.

You kinda get what I mean?
Read the value before altering it and store it in a variable for later use, don't try to read it at the time the person is reverting.
Told you will get the answer here..

[TROLL]/Marked as solved[/troll]

/redirect deleted
Well, I still have one question so bare with me!
OK, so I've declared those numbers in an if statement but if I try to use the numbers I delcared in another if statement, it says it's not declared. They're both inside the same sub btw.
Quote Originally Posted by master131 View Post
Well, I still have one question so bare with me!
OK, so I've declared those numbers in an if statement but if I try to use the numbers I delcared in another if statement, it says it's not declared. They're both inside the same sub btw.
Declare the variables outside of any If statements, and then do the assigning within an If statement if need be.
Quote Originally Posted by Jason View Post


Declare the variables outside of any If statements, and then do the assigning within an If statement if need be.
The thing is, I need them to be updated if a checkbox is ticked.
[php]dim i as integer

if checkbox1.checked then
'meh
end if
[/php]

?
Posts 1–15 of 18 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us