PC Review


Reply
Thread Tools Rate Thread

Create object in runtime

 
 
Allen
Guest
Posts: n/a
 
      29th Sep 2009



I want to make a program which can allow the user to hire employees at
regular bases. In other words, every time an employee is hired the program
should be able to create an object by itself for that employee.
What I want is that; every time the user enters a new employee the program
will create a new object for such employee.

The user can enter, for example, the name and number of a new employee and
the program will create an object for such employee. The reason I want to
do that is I do not want to create 50 objects and latter know that the user
needs only 30 object or may be the user needs more than 50 object. At the
end, as the program will be used by different users, every user can have
exactly the number of objects needed.

--
Thanks
Allen

 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      30th Sep 2009
A bit unclear...

It looks like you are looking for a data structure, such as
http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx that allows to store a
list of objects. Also depending on what the application does, you won't
necessarily have an object for each user. Sometimes you just have in memory
those objects the user currently deals with and they are retrieved/stored as
needed from a database...

--
Patrice


"Allen" <(E-Mail Removed)> a écrit dans le message de groupe de
discussion : EE25451D-83A9-4274-8BAD-(E-Mail Removed)...
>
>
>
> I want to make a program which can allow the user to hire employees at
> regular bases. In other words, every time an employee is hired the
> program should be able to create an object by itself for that employee.
> What I want is that; every time the user enters a new employee the program
> will create a new object for such employee.
>
> The user can enter, for example, the name and number of a new employee and
> the program will create an object for such employee. The reason I want to
> do that is I do not want to create 50 objects and latter know that the
> user needs only 30 object or may be the user needs more than 50 object.
> At the end, as the program will be used by different users, every user can
> have exactly the number of objects needed.
>
> --
> Thanks
> Allen
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How can I create object in runtime with Type object? Josue Camargo Cruz Microsoft Dot NET 0 7th Nov 2004 08:06 PM
Re: How can I create object in runtime with Type object? Shiva Microsoft Dot NET 0 6th Nov 2004 09:26 AM
Dynamicly create object at runtime.... Doug Swanson Microsoft VB .NET 1 25th Mar 2004 09:06 PM
Create an object at runtime Dave Taylor Microsoft VB .NET 7 12th Feb 2004 09:23 PM
Create object at runtime.. is reflection needed? Jay Allard Microsoft C# .NET 2 9th Dec 2003 01:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:13 AM.