Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Strange Problem with Sorting Table and saving help please

Author
Message
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 2nd Sep 2011 22:05
Hi,

I don't consider myself a newbie at programming and have searched the forum (before anyone asks)

See Code attached.

I have a list of names with points against them which when I display they appear correct, but when I save to a file, they don't appear in the correct order. I have spent hours trying to figure out why and can't see any errors....

It seems so simple, the variables are identicle and are displayed in the same order as the strings are written...

Any help would be really great...

Here shows how data is displayed...




Here shows code called for saving and loading....


CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 3rd Sep 2011 08:48
Hi DemonHill,

If you can attach a workable lots of code, I'll take a look at it. (all the required variable/array declarations, etc)

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 3rd Sep 2011 18:17
Turns out I was saving using the same variable name as a global DIM which seemed to some how get over written when saving...
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 4th Sep 2011 04:12
Ah. Happens to the best of us!

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame

Login to post a reply

Server time is: 2026-07-10 17:19:52
Your offset time is: 2026-07-10 17:19:52