Please help me finish my first app

Dr@g0nic

Expert Member
Joined
Oct 11, 2006
Messages
1,654
Reaction score
4
Location
Somerset West, Cape Town
Good Day

First I'd like to thank Wesley Fraser and Ermac for helping me so far.
Now i'd like to bring others up to speed...
I'm busy developing my first app after graduating, its just a simple app for my dads company to just make things a bit easier...mostly so that they don't have to make their own stuff in excel for example... so they just use this app with everything they need, for example income and expenditure.
(i actually think excel is easy enough but ok)

having said that i'm struggling with something at the moment.
i want to make the columns add up to give like a total at the bottom. I'm kinda getting it right but the thing is, to see the total i have to type something in the total column, and if i leave out one column i get a error, probably logical. The code i'm using is...

AmtTot = amt01 ++ amt02 ++ amt03, etc...

The i named the last cell(using textboxes) AmtTot and the others above it amt01, amt02, etc.

I have a feeling i'm totally wrong or how can i set a columns default value to null
 
First off, which programming language are you using?
 
You're still not making a lot of sense, but I assume you want to get a total for the hours column and a total for the Price column,

You'd need to check each textbox to see if the length of the text was > 0 and you'd also need to check the text was a number. Once you had all the values you could add them up to get a total.

To check if the textbox contains something use textBox.Text.Length and to check that the value was numeric use double.TryParse() method.
 
Top
Sign up to the MyBroadband newsletter
X