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 / Okay, can anyone duplicate this? (Blue's GUI required)

Author
Message
Rknight
22
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 12th Oct 2003 07:01
The bare bones amateur (that's why I use DB) code is at the bottom here.

Basically it seems that while the array will handle multi-line linebreak text fine in memory, saving it to a file it can't handle using 'save array'.

To duplicate it:

Using the 'textarea' gadget write in something like 'this is line one', save it to memory, then click forwards, write in 'this is line two', etc., then click the forwards arrow, and write in:

'This is line 3

With lots of line breaks.

Lots of line breaks.'

Then going through the array backwards in forwards, the line break full entry will show up fine.

Then go and 'save' to a file, and 'load' from a file, and whoopie, all bad.

Is this a bug with saving arrays to file? A feature I didn't read the 'help' on? Particular only to the textarea gadget? Or only my screwy PC? Eh. I wonder how best to work around it and keep using 'save array' if possible.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 12th Oct 2003 12:01
The Textarea gadget seems to be returning text correctly without any problems and nothing happens if you don't SAVE FILE, hence it seems to be a bug in SAVE ARRAY.

The SAVE ARRAY command uses Linebreak delimiters which presumably means that it gets a bit screwed up if there are lots of linebreaks in the actual text. I don't know exactly how the SAVE ARRAY command works internally, but I can see that certain ways of doing it would result in serious problems if there were lots of linebreaks.

Cassi
22
Years of Service
User Offline
Joined: 6th Sep 2003
Location:
Posted: 12th Oct 2003 12:19
hmmm....

Rob K = Robert Knight / Rknight = ????

Are you the same person?
Rknight
22
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 12th Oct 2003 12:25 Edited at: 12th Oct 2003 12:27
Nope, quite different. Ha! You have a sharp eye though. A little sharper and you might've noticed my amateur questions.

I'm quite enjoying using Blue's GUI. I'm going to email this problem to the DB people, and hope there's a fix for SAVE ARRAY that comes out of it rather than myself having to figure a workaround.

AH well. At least the help file should mention this.

I'm not much of a coder, unlike Rob. The simpler it is, and the less it gets in the way/I have to think about it, the better for my creative processes.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 12th Oct 2003 14:28
@Cassi

No, we happen to share the same name.

@RKnight

I suggest that you write your own code for SAVE ARRAY. Or you can used the attached code I found in my archives

David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Oct 2003 15:08
LOL I remember my share*it receipt:

"All orders are processed by Knight Robert. If you need support, please contact Knight Robert"

seems somebody mixed up first and surnames

Rknight
22
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 13th Oct 2003 12:28 Edited at: 13th Oct 2003 12:28
Ah thank you. That source code is very useful indeed!

Now I can get back to work on the creative parts.

Login to post a reply

Server time is: 2026-07-28 14:44:22
Your offset time is: 2026-07-28 14:44:22