473,323 Members | 1,547 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,323 software developers and data experts.

adding new product

oll3i
679 512MB
when a user adds a new flower i need to create a new flower class for that flower
...how to do that?
Apr 12 '07 #1
6 1233
JosAH
11,448 Expert 8TB
when a user adds a new flower i need to create a new flower class for that flower
...how to do that?
You can't do that without a whole lot of trickery-dickery. Are you sure you need
to create a new class? Wouldn't a new set of attributes of a flower be enough?

kind regards,

Jos
Apr 12 '07 #2
oll3i
679 512MB
yes i need to create a new class
Apr 12 '07 #3
JosAH
11,448 Expert 8TB
yes i need to create a new class
Well, if you're sure about that you have to type in the entire class definition
yourself. If you compare your new class to one of your existing Flower classes
what's different then? The values of the members? If so, you don't need a new
class at all.

kind regards,

Jos
Apr 12 '07 #4
oll3i
679 512MB
so what should i do?
Apr 13 '07 #5
Ganon11
3,652 Expert 2GB
Can you give us a larger description of what you want to do?
Apr 13 '07 #6
r035198x
13,262 8TB
so what should i do?
When a user adds a new flower, instantiate a new Flower object using the one Flower class that you already have.
Apr 14 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Gabriele *darkbard* Farina | last post by:
Hi, there is a way to add methods to an object dynamically? I need to do something like this. I remember python allowed this ... class A(object): def do(s, m): print m @staticmethod def...
2
by: Robin S. | last post by:
This is an "Add product" form. The user will enter a ProductNo (catalog number), select a Product Class (from cascading combo boxes) and then click a button to create the product. When a...
6
by: Robin S. | last post by:
**Eric and Salad - thank you both for the polite kick in the butt. I hope I've done a better job of explaining myself below. I am trying to produce a form to add products to a table (new...
0
by: Paul T. Rong | last post by:
In form ¡°Order¡± there are 4 important controls: - combo1 (unbounded, source from ProductID field of Product table), - txt1 (I wish the product name will automatic show here after the user inputs...
2
by: David | last post by:
Hi, I have an order form which has a field 'ProductID'. This form has a button on each record to open a new form linked by ProductID. This new form is a continuous form and obviously, only...
4
by: petermichaux | last post by:
Hi, If I type http://domain.com/product/5 into my browser I will see the product details in the main div plus a side bar div containing links to other products. This side bar is common to all...
1
by: ConfusedMay | last post by:
Hi, I'm working on a database that has a form which hold all of our products testing. each product can hold more than 1 complete test (complete test here means that product has to have before and...
30
nexcompac
by: nexcompac | last post by:
I am getting I believe three erros in this code. I had it running perfect untill I added all the restock fee items. This is what I have so far: import java.util.*; // program uses class...
8
nexcompac
by: nexcompac | last post by:
Ok, I am working on an inventory program and this is where I am at thus far. I seem to be getting two errors that I can not figure out. I will post the errors at the end of the code. import...
10
by: Guillermo_Lopez | last post by:
Hello All, I am using VBA in access to perform some calculations. There is a particular sumation that is wrong (barely). this code is withing a loop. TDist = TDist + TempDist Both TDist...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.