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.

Newcomers DBPro Corner / arrays question

Author
Message
Mr Black
18
Years of Service
User Offline
Joined: 20th Oct 2005
Location: USA
Posted: 20th May 2006 22:53
Is there a way i can save numbers and strings into the same array. I use this right now but it doesnt work.



It atleast loaded when i did


I liked that but i read and saw thats its impossible.
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 21st May 2006 02:10


The thing wrong about this is you didn't put the field it is suppose to go to. Something like this profile(1,1,1)=name$ should be like this profile(1,1,1).name$=name$. This part .name$ is the field you put it in just like everything else.

Hope that explained something because I am not good at explaining things.

NARUTO IS THE NINJA.....not really

WIP...4 Elements
Mr Black
18
Years of Service
User Offline
Joined: 20th Oct 2005
Location: USA
Posted: 21st May 2006 02:47 Edited at: 21st May 2006 04:24
Ok, i tried that but still not saving right, heres my source for saving.
-This is the line the error(incorrect array)or something like that says the error is.

Thanx for the reply slayer93
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 21st May 2006 04:31
Have you tried using Typed Dims?



PS: You can't use 'Save Array' on Typed Dims, so instead Try



This Should search through the Whole Dim, Writing Every Entry
Mr Black
18
Years of Service
User Offline
Joined: 20th Oct 2005
Location: USA
Posted: 21st May 2006 06:09 Edited at: 21st May 2006 06:11
Ok, that got me closer, now it saves correctly, cant load it tho. Heres what I am using



Thanx for all the help

EDIT: and MSon i kinda did what u 1st said in my first post. But now thanks to u i can use the profile(1).string style.
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 21st May 2006 06:16
I don't think you can mix strings and bytes in a file, (Unsure)

I know you can't mix strings and bytes in a Typed dim, (Try using Integers)
Mr Black
18
Years of Service
User Offline
Joined: 20th Oct 2005
Location: USA
Posted: 21st May 2006 06:31 Edited at: 21st May 2006 06:35
Got it
my stupid mistake
heres what i have now


Thanks for the help, i think i got it right now, this is much easier to organize then what i had before. Altho, if its possible to do what i had before that would be nice, but it atleast works now.

EDIT:It must be its possible to can mix strings and bytes, works for me.

Login to post a reply

Server time is: 2024-09-24 23:23:01
Your offset time is: 2024-09-24 23:23:01