The Daily Click ::. Forums ::. Klik Coding Help ::. Saving user submitted info.
 

Post Reply  Post Oekaki 
 

Posted By Message

JP



Registered
  07/06/2003
Points
  1338
10th August, 2004 at 04:44:23 -

My equipment tracking program is almost complete but it will be useless without being able to save users, items, and people with obligations.

Download it at:
www.sitesled.com/members/agentorange/savehelp.cca

It is a bit complicated so explanations are in red text.

I need saving for:

Usernames, Passwords

Teacher username, password

Equipment to check out

Checked out equip, user name, date

Thats it! Thanks!

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
10th August, 2004 at 06:29:08 -

I should think an INI object is the best option for you...

An INI works like this...

[Group]
Item = Value
Item = Value
[Group]
Item = Value

Et cetera.

When saving/storing the information, you can do it like this:

[Userinfo]
Username = bob
Password = myfannyitches

[Teacher]
Username = saddam
Password = cantwaittofry

[Equipment]
Equip1 = 0
Equip2 = 1

Et cetera. To save the information simply use the actions "Set value", and then enter the item and group in which you'd like to set the value, if it's a number, if it's a string(text) use "Set string". So, say you went to "Set string", and typed "bobmarley", then chose Group "Teacher" and item "Username", it would set the string of Username(set as "saddam" in the above example) to "bobmarley". Don't worry about creating the INI file, groups, or values, MMF will create them for you automatically when you tell it to set the values/strings.

To retrieve the values/strings when loading you basically do the same thing in reverse.

 
http://www.fzgames.com

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
10th August, 2004 at 12:26:29 -

If other people have access to the entier computer (or if they can open up My Computer), then you might want to encrypt it or use something a little more secure than an INI.

 
http://www.klik-me.com

JP



Registered
  07/06/2003
Points
  1338
10th August, 2004 at 21:05:36 -

Where is the ini stored and is it permanent? Anyone feeling charitable enough to set this up for me?

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
11th August, 2004 at 03:03:23 -

An ini is an external file. It has the extension .ini . You can find out more about it on click team's knowledge base.

http://www.clickteam.info/kb/start/index.php?showtopic=64

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

JP



Registered
  07/06/2003
Points
  1338
11th August, 2004 at 03:40:33 -

awesome!

 
Steve Zissou: Anne-Marie, do all the interns get Glocks?

Anne-Marie: No, they have to share one.

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
11th August, 2004 at 15:53:34 -

*pops phizzy's enlarged head with a pin*

 
http://www.fzgames.com
   

Post Reply



 



Advertisement

Worth A Click