m_a_x_y
(Lurker)
2002-09-14 06:49 PM
Variable-Structures like it's used in VB

Hallo!

I would like to have the ability to use variable structures like this:

Type Person
Dim $Name
Dim $Address
Dim $Phone
End Type

? Person.$Name

How do you think about that suggestion?

Greetings to all reading this thread!


LonkeroAdministrator
(KiX Master Guru)
2002-09-14 06:54 PM
Re: Variable-Structures like it's used in VB

I don't use vb, but from c++ learned the sweetness of structs...

anyway, this goes really close to the topic before:
http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=4;t=000267

it started differently and had more stuff, but somewhat the road of the question is going to same direction...

again, good request.

would it go something like:
Type Person
Dim $Name
Dim $Address
Dim $Phone
EndType

? $Person.Name


ShawnAdministrator
(KiX Supporter)
2002-09-14 08:05 PM
Re: Variable-Structures like it's used in VB

Or would it be $Person.$Name ? Great idea !

LonkeroAdministrator
(KiX Master Guru)
2002-09-14 09:30 PM
Re: Variable-Structures like it's used in VB

I don't know how ruud would like it to be...

but it sounds better in my ear... like having struct as sort of function...

if we would then have "libraries" or collection of functions...
the call as $person.var sounds more like "standard".

and easier to code... don't know....
 


ShawnAdministrator
(KiX Supporter)
2002-09-14 09:44 PM
Re: Variable-Structures like it's used in VB

yap - i like the $person.name format better too. Of course, having structures would be the first great step toward OOK (Object Oriented Kixtart) (hehee). I mean, classes are just structures with functions attached to them [Wink]

LonkeroAdministrator
(KiX Master Guru)
2002-09-15 12:53 AM
Re: Variable-Structures like it's used in VB

yeah...

just have to see what ruud says about our dreams...


m_a_x_y
(Lurker)
2002-09-15 08:48 AM
Re: Variable-Structures like it's used in VB

quote:
yap - i like the $person.name format better too. Of course, having structures would be the first great step toward OOK (Object Oriented Kixtart) (hehee). I mean, classes are just structures with functions attached to them
Your're right! $Person.Name is the better format and the idea of having OOK sounds very good. That's exactly what I thought (but forgotten to write) when I started this thread.
Great idea! Thanks for support!


LonkeroAdministrator
(KiX Master Guru)
2002-09-16 12:22 AM
Re: Variable-Structures like it's used in VB

maxy, did you check that link above?

I really think there is lot of ppl wanting to see kix evolving to really get OOK...

well, we will see, but fantastic things that road could bring...

oohlala!


Wizard
(Hey THIS is FUN)
2002-09-16 06:42 PM
Re: Variable-Structures like it's used in VB

I use VB a lot, and this functionallity in KIX would be great.

$person.name would be the best way to go.

I could see a problem tying to implement it in KIX though. Ruud would have a job on his hands - but I am sure he can do it.

W


Lee Wilmott
(Starting to like KiXtart)
2002-09-17 10:53 AM
Re: Variable-Structures like it's used in VB

I just wanted to add my support for this enhancement!

Lee


ShawnAdministrator
(KiX Supporter)
2002-09-17 02:37 PM
Re: Variable-Structures like it's used in VB

Hey Lee - glad to see you finally got yourself a userid and member number - I've read your stuff on other boards - especially like your ideas and suggestions - a cut above imho. Hope to see you around the board more often.

-Shawn


Lee Wilmott
(Starting to like KiXtart)
2002-09-18 02:46 PM
Re: Variable-Structures like it's used in VB

[Smile] [Smile] [Smile] Cheers Shawn! I too thought it was about time I registered for an ID. I'm hoping to contribute a little more to these forums.

The problem, as always, is time. I have limited internet access from home, so the only time I do have is during my working day!

See you around for sure!

Lee


Fernando Madruga
(Starting to like KiXtart)
2002-09-29 12:19 AM
Re: Variable-Structures like it's used in VB

Just two more cents:

I like those ideas (records/structs and OO)...


LonkeroAdministrator
(KiX Master Guru)
2002-10-01 01:03 AM
Re: Variable-Structures like it's used in VB

actually, now as I was checking it...
it works with minor tweaks...