11-09-2006, 06:19 PM
Hey, i have to make a database at school and ini's seemed simple to make. i have 3 months untill i have to start, so could somone post with a detailed expantation of how they work please?
Read and Write InI's
|
11-09-2006, 06:19 PM
Hey, i have to make a database at school and ini's seemed simple to make. i have 3 months untill i have to start, so could somone post with a detailed expantation of how they work please?
12-09-2006, 12:18 AM
Eh...
Quote:[HEADER1] That's the format...
12-09-2006, 03:17 AM
Do you want the code? the API call and how to use them?
Other than that its pretty easy
12-09-2006, 08:23 AM
Actually, putvar and getvar are alot nicer. You can rip those from MS too, they read/write ini files.
12-09-2006, 09:17 AM
halla that would be awsome
I mean can you like post an exaplme of how they read from the ini?
12-09-2006, 04:25 PM
Sure. This is taken from my Snake game.
I made a mod and named it modINI. This just sets read and write ini. Code: Option Explicit Writing to the INI file. Code: Call WriteINI("HIGH SCORES", "1.", lblFinalScore.Caption, (App.Path & "\highscores.ini")) First part calls it. HIGH SCORES is like the category its labeled under. Then 1. is a sub category... it then writesFinalScore's Caption to that category. Then the last part places it in highscores.ini . Read INI Code: HighScore = Trim(ReadINI("HIGH SCORES", "1.", App.Path & "\highscores.ini")) HighScore = just sets that value to the following. Then it searches under the Category HIGH SCORES. Then it finds the sub category 1. It takes the value from there and thats the value of HighScore. Then of course the last part is the file it takes the info from. Anyways pretty simple. You should be able to do whatever you need with this. If you need any more help let me know.
12-09-2006, 04:32 PM
Thanks man realy helped me loads.
If you ever need anything webhosting or PHP wise, ask ![]()
12-09-2006, 08:02 PM
Not a problem. And thanks... I know basic PHP but im not expert.
|
« Next Oldest | Next Newest »
|