Forums Register Login

Additon of integers in a single textfield

+Pie Number of slices to send: Send
Hi,
I'm trying to figure out a code for an accounting software for schools where school fees balances can be carried forward to next semester automatically
2
+Pie Number of slices to send: Send
 

charles macharia wrote:Hi,
I'm trying to figure out a code for an accounting software for schools where school fees balances can be carried forward to next semester automatically


That's nice. Did you have an actual question ?
+Pie Number of slices to send: Send
 

Stuart A. Burkett wrote:

charles macharia wrote:Hi,
I'm trying to figure out a code for an accounting software for schools where school fees balances can be carried forward to next semester automatically


That's nice. Did you have an actual question ?


Yes. How to store values which have been imputed in a text field and used later.like in my case where unsettled balances of one semester are carried forward to the next
+Pie Number of slices to send: Send
 

charles macharia wrote:Yes. How to store values which have been imputed in a text field and used later.like in my case where unsettled balances of one semester are carried forward to the next


I'm obviously still missing something, but why can't you store them in your database along with all your other data ?
+Pie Number of slices to send: Send
 

Stuart A. Burkett wrote:

charles macharia wrote:Yes. How to store values which have been imputed in a text field and used later.like in my case where unsettled balances of one semester are carried forward to the next


I'm obviously still missing something, but why can't you store them in your database along with all your other data ?


For example i have a student with unsettled balance in the first semester so when we enter the second semester there is a new set school fees so i was asking how can i make the unsettled balance of the first semeseter be imputed to bring total balances for the next semester
+Pie Number of slices to send: Send
How about the usage of serialization?
You can serialize the objects that can then be carried forward...
+Pie Number of slices to send: Send
 

Ashish Dutt wrote:How about the usage of serialization?


I wouldn't advise that. Serialization is tricky, and sometimes brittle.

charles macharia wrote:For example i have a student with unsettled balance in the first semester so when we enter the second semester there is a new set school fees so i was asking how can i make the unsettled balance of the first semeseter be imputed to bring total balances for the next semester


And as Stuart said, one presumes that you have a database that contains these values. If you don't, that's where you need to start.

Winston
+Pie Number of slices to send: Send
i already have a database but the problem is when i make new entries for a new semester the previous balances are not automatically added to the new balances
+Pie Number of slices to send: Send
 

charles macharia wrote:i already have a database but the problem is when i make new entries for a new semester the previous balances are not automatically added to the new balances


I don't understand your question. Do you think that this is somehow magically going to happen? If there's some value (or values) that need to be added from your database, you need to read them, possibly summarize them, and then add them in yourself. It's possible that one or more of those actions might be best done on the database, but we've got very little to go on as yet.

Winston
You get good luck from rubbing the belly of a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 698 times.
Similar Threads
Very Confused!!
Advanced Inheritance.
New to Java - i need help please!
SubClass Blues!
Newbie needs help
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:33:48.