Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   Help me! How can I get an Integer in memory (http://www.programmingforums.org/showthread.php?t=12147)

FlytotheSky Dec 10th, 2006 12:25 AM

Help me! How can I get an Integer in memory
 
Good afternoon everybody, I'm a new member. :) Please help me!
How can I get an Integer value in memory?:confused: I want to access memory. Thank so much and have a good day:)

alphonso Dec 10th, 2006 12:36 AM

If you mean storing a number to the hard drive, then there's two ways I can think of:
1) Create a database to store your integer to memory, and the second one is a bit hard...
2) Create a Registry Key to store your integer.

I'd recomment number 1 because it's safer to do (flooding the Registry is a computer crime ;)). To do this, build a connection with a Database, be it Jet4.0 or SQL.

If you mean getting a number from memory, then you either have to do one of the above (just reverse the codes to retrieve it, rather than save it), but another option is available:

Create a text file (using Notepad if you want), an put in a number there. Afterwhich, you can call the ReadLine() and WriteLine() functions built in VB2005 (browse the Object Browser by pressing F2 for more info about these functions).
By the way, there's really no reason at all to post two posts...We all see your first one :)

crawforddavid2006 Dec 10th, 2006 2:34 AM

ok sorry to do this because DaWei would normally do this but DO NOT DOUBLE POST!!


All times are GMT -5. The time now is 11:30 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC