473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

3d array but with strings instead of numbers

Hi, i want to create somekind of information library for
my forms in my application... since i have alot of forms
on the same kind connecting to different server i would
like someway to store each sessions information even if
all client windows are closed...
so im looking for something like a 3d array but where the
values can be retrieved using strings instead...

so i can store the session name and under that i can
store variables and store what windows are open for that
session and so on...

Thanks
Nov 20 '05 #1
7 1064
I.E.

Dim YourArray( 10.10.10 ) as String

Regards - OHM

an*******@discussions.microsoft.com wrote:
Hi, i want to create somekind of information library for
my forms in my application... since i have alot of forms
on the same kind connecting to different server i would
like someway to store each sessions information even if
all client windows are closed...
so im looking for something like a 3d array but where the
values can be retrieved using strings instead...

so i can store the session name and under that i can
store variables and store what windows are open for that
session and so on...

Thanks

Nov 20 '05 #2
<an*******@discussions.microsoft.com> wrote...
so im looking for something like a 3d array but where the
values can be retrieved using strings instead...


I'm just guessing but it sounds a little like you could use a collection of
"session" objects. If you design a Session Class and and SessionCollection
you'd have something that was a cohesive, extensible model rather than
simply an array in which you know that the 2nd element contains the "name"
or something.

It would not only remember the settings, it should be able to start/stop the
session, open/close the windows, etc.
Nov 20 '05 #3
One Handed Man wrote:
I.E.

Dim YourArray( 10,10,10 ) as String

Regards - OHM

an*******@discussions.microsoft.com wrote:
Hi, i want to create somekind of information library for
my forms in my application... since i have alot of forms
on the same kind connecting to different server i would
like someway to store each sessions information even if
all client windows are closed...
so im looking for something like a 3d array but where the
values can be retrieved using strings instead...

so i can store the session name and under that i can
store variables and store what windows are open for that
session and so on...

Thanks

Nov 20 '05 #4
Hmm... sounds like what i need, its hard to really
explain since my english isnt that good.

but i want to get the items from the collection with
something like

Dim sessionName As String
username = mycol(sessionName).getValue("username")

and delete whole sessions with subitems when one session
is closed

maybe i would have to make my own class or something...
if you have any information on how i can do it (webpage
or something) i would really appriciate it... thanks!
-----Original Message-----
<an*******@discussions.microsoft.com> wrote...
so im looking for something like a 3d array but where the values can be retrieved using strings instead...
I'm just guessing but it sounds a little like you could

use a collection of"session" objects. If you design a Session Class and and SessionCollectionyou'd have something that was a cohesive, extensible model rather thansimply an array in which you know that the 2nd element contains the "name"or something.

It would not only remember the settings, it should be able to start/stop thesession, open/close the windows, etc.
.

Nov 20 '05 #5
-----

what you want is an assoc-list. As far as I know you're
out of luck. Try Lisp or Perl instead :-)
Nov 20 '05 #6
In article <02****************************@phx.gbl>, <an*******@discussions.microsoft.com> wrote:
Hmm... sounds like what i need, its hard to really
explain since my english isnt that good.

but i want to get the items from the collection with
something like

Dim sessionName As String
username = mycol(sessionName).getValue("username")

and delete whole sessions with subitems when one session
is closed

maybe i would have to make my own class or something...
if you have any information on how i can do it (webpage
or something) i would really appriciate it... thanks!


Look at the Hashtable class in System.Collections. Of course, you may
want it to be typed, so you will want to create your own class that
inherits from System.Collections.DictionaryBase and then override to
dealy with your types as appropriate...

--
Tom Shelton
MVP [Visual Basic]
Nov 20 '05 #7
Hi,

The hashtable allows you do what you want but it is one dimensional.
http://msdn.microsoft.com/library/de...ClassTopic.asp

Ken
--------------------------
<an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Hi, i want to create somekind of information library for
my forms in my application... since i have alot of forms
on the same kind connecting to different server i would
like someway to store each sessions information even if
all client windows are closed...
so im looking for something like a 3d array but where the
values can be retrieved using strings instead...

so i can store the session name and under that i can
store variables and store what windows are open for that
session and so on...

Thanks

Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Federico G. Babelis | last post by:
Hi All: I have this line of code, but the syntax check in VB.NET 2003 and also in VB.NET 2005 Beta 2 shows as unknown: Dim local4 As Byte Fixed(local4 = AddressOf dest(offset)) ...
38
by: VK | last post by:
Hello, In my object I have getDirectory() method which returns 2-dimentional array (or an imitation of 2-dimentional array using two JavaScript objects with auto-handled length property - please...
4
by: John | last post by:
I'm trying (struggling) to use realloc to grow a list of strings. The number of strings is not known (this is a subset of an assignment to write a recursive ls program... my BS was in EE, so I'm...
8
by: nescio | last post by:
hello, i have an array and i don't know the content of it, but i want only unique values. in php there is a function to do this, but how must i do this in javascript? i have tried a lot and...
11
by: Jim S. | last post by:
hi guys and gals, i have an array, but i have the hardest time putting the value in the table, so what is the normal procedure? thanks Jim
24
by: Michael | last post by:
Hi, I am trying to pass a function an array of strings, but I am having trouble getting the indexing to index the strings rather than the individual characters of one of the strings. I have...
44
by: svata | last post by:
Hello, I wonder how to resize such array of structures using realloc()? #include <stdio.h> #include <stdlib.h> #define FIRST 7 typedef struct { char *name;
14
by: julie.siebel | last post by:
I've been wrestling with a really complex page. All the data is drawn down via SQL, the page is built via VBScript, and then controlled through javascript. It's a page for a travel company that...
15
by: Steve | last post by:
I am having problems getting values out of an array. The array is set as a global array and values are pushed into it as they are read from a JSON file using a "for loop". When the "for loop" is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.