PDA

Click to See Complete Forum and Search --> : I have a little quastion :-)


Bjorn
Dec 4th, 2000, 07:53 AM
like if the player have the amout of 50 doller and he close the game
that the 50$ gows to a incrypte text file and if i open the game again have can i set the 50$ back??
and how can i set my screen maximizid the the property og the screen

/\/\isanThr0p
Dec 4th, 2000, 10:04 AM
I wouldn't use a txt file to store the 50$. Use a file in random access mode. That may be even enough security for you if you store more than just the dollar value.

a possibility (not very safe, but it works) is:
put two buttons and three textboxes on a form

Private Sub Command1_Click()
Text2.Text = 11111111 Xor Int(Text1.Text)
End Sub

Private Sub Command2_Click()
Text3.Text = 11111111 Xor Int(Text2.Text)
End Sub

when you run the program you can write a number to the first textbox and encryt it with button one to textbox2 and decrypt it to txtbox3. This is not a very good method. It works only with integers and not work with high values.
Of course you can change the 1111111 to any number consisting of "1" and "0".

Do you want to set your form maximized?
just put Me.WindowState = vbMaximized

I hope I could help a little.