vb: help me code a quick/basic adding program (for numerology)
I'm posting this help thread for my little sister she is getting into numerology. Apparently they take someones birth date & add it together like this....
So If your birthday was for instance:
12/18/1991
In numerology you add it like this....
1+2+1+9+1+9+9+1 = 32
Then you take the result (32) and add it like this
3+2 = 5
The end result being that your life path equals a FIVE.
(Rule #1 Dealing with zero's)
In numerology you never add zero's & always drop any zeros (0's) from the results. So if a result was 30, it would be considered 3)
Now to show an example of how you deal with zero's & drop them from results.
If your birthday was for instance: 5/2/2010
Then you add 5+2+2+1 (don't add the zero) = 10
Then you take the result (10) and drop the zero...So the final result would be the life path = 1
(Rule #2, Master Numbers, 11, 22 & 33)
The only time you do not add the resulting final # together (outside of one containing a zero) that you get from the original birth date addition together is if it equals 11, 22, or 33.
So if the birth date was 5/1/2012
You add 5+1+2+1+2 = 11
The end result is 11 because you never add an 11, 22, or 33 together. So if the first addition result is 11, 22 or 33, then we do not add them together. We do not go to the next task.
Could someone help us figure out some simple visual basic code/rules to automatically add up a birth date to its numerology life path #...based on the above variables?
The form will use:
Textbox1.text (for the month of birth)
Textbox2.text (for the day of birth)
Textbox3.text (for the year of birth)
Button1 which will be the "calculate" button.
Label1 / Label1.text (which will display our result)
I hope I put this together in a simple/understandable way. I'm not the best at writing! And I thank everyone for taking the time to read this & hope someone feels like helping :-)
My sister & I really appreciate your time!:wave::blush:
Re: vb: help me code a quick/basic adding program (for numerology)
My first piece of advice would be to your little sister: do something useful with your spare time because numerology is a complete crock. As if religion wasn't bad enough, people want to start reading patterns into meaningless information like the date you were born? Mankind is doomed.
With that out of the way, my second piece of advice would be to use a DateTimePicker rather than separate TextBoxes. That will take care of validation and also make the data easier to work with. You can get the selected DateTime value from the Value property of the DTP. Next, you can convert that to a String by calling its ToString method and pass the format specifier "dMyyyy", which will give you the day, month and year with no padding zeroes and no separators. That String has a ToCharArray method that will give you an array containing the individual digits. You can then loop through that array, convert each element to an Integer and add them to a running total as you go. You don't have to care about zeroes because adding zero to a number doesn't change the number anyway but, if you want to explicitly ignore zeroes, test if the value is zero and don't add it if is. If your total is 10 or greater and not one of those super spooky master numbers, convert it to a String and repeat. Convert the final result to a String and display. Done. Now you can do something really worthwhile and create an app that uses your webcam to read your aura.
Re: vb: help me code a quick/basic adding program (for numerology)
I'm curious about rule #1: How is adding in a zero different from not adding in a zero? I come up with the same result either way.
Re: vb: help me code a quick/basic adding program (for numerology)
Quote:
Originally Posted by
Shaggy Hiker
I'm curious about rule #1: How is adding in a zero different from not adding in a zero? I come up with the same result either way.
Hey, it's mysterious and numinous. You can't expect it to make sense as well! :rolleyes:
Re: vb: help me code a quick/basic adding program (for numerology)
Quote:
Originally Posted by
jmcilhinney
My first piece of advice would be to your little sister: do something useful with your spare time because numerology is a complete crock. As if religion wasn't bad enough, people want to start reading patterns into meaningless information like the date you were born? Mankind is doomed. Now you can do something really worthwhile and create an app that uses your webcam to read your aura.
Wow I really appreciate your advice. Seriously let me just tell you...I bet as soon as I tell my sister this, she will just light up. As if she had just been shown the light for the very first time. I can't thank you enough.
My (sister's) were born monozygotic twins. Whose bodies were joined in utero & shared the same chorion, placenta, and amniotic sac, which happens in about 1 in 100,000 births. Another word for this is deniojnoc twins. My sister Carla who is now 13 years old had a 15% chance of surviving birth & was given a 20% chance of surviving the surgery to to detached from Sara. She now has a 25% chance of living past the age of 18. She is home schooled by my mom & grandmother as her appearance, the fact she is wheelchair bound, kept her from wanting to attend a public school. She is stared/pointed at/laughed at & ridiculed every time time she leaves the house by both children & GROWN ADULTS. Carla finds comfort in reading/watching movies & studying history from home in between doctor appointments & going to dialysis (she will almost definitely not be receiving a new kidney because her of a low LYFT score). Meaning her years left to live are not necessarily increased by receiving a new kidney v.s. staying on dialysis. So anyway she was studying the medieval/Renaissance periods and kept seeing mentions of numerology/astrology. Carla & Sara were born on 9/9/1999 at 9pm. So she got all interested in this stuff. And I like to support her new 'hobbies' in any way possible. I feel like no matter how stupid I might think they are. If it helps her understand the world in her own way a little bit better before she departs it. Who am I to tell her it's "a crock & we're doomed".
I was simply hoping to open this post & find a few simple lines of code. So I could compile a program & go put it on my sisters laptop tomorrow when I go visit her at my moms.
But I'm done crying for today. Bye
Re: vb: help me code a quick/basic adding program (for numerology)
Being in a wheelchair can be very interesting. I went to Disneyworld in a wheelchair after a hike where I broke my foot (I kept hiking on it for another 1000 miles, but it was still broken). Those folks were SO polite....except that they wouldn't talk to me. They'd ask my parents if "I could walk a few steps?" It was really bizarre. I suppose that I was emaciated and disheveled, but I was a lot more sheveled than I had been while I was hiking, and the cast was clearly on my foot, not my head. This society doesn't deal well with wheelchairs.
Although you appear to have touched a nerve, JMC gave you one key piece of advice: Use a dateTimePicker. That will give you a date, which will be FAR easier to work with than textbox data. After all, if you use textbox data, you will have to do LOADS of validation to figure out what the user entered and what to do with it. By using a Date type from a DateTimePicker (you may want two, one for date and a different one for time), then you have all the pieces available, since the Date type has Month, Year, Day, Hour, Minutes, and Second fields, along with a whole lot more. That will get you most of what you want right away.
My comment may have seemed whimsical, but it isn't. You made a whole rule for what to do with 0, but the rule doesn't appear to do anything as written. Therefore, I would guess that the rule was written wrong, and that will have a significant impact on any code. If you are really supposed to treat 0 in a special fashion, we need to know how. Ignoring 0 isn't meaningful, because you can still add it in without having any impact on the overall calculation. The way that I suspect the rule was meant was that if you remove it, and that results in a 'special number' that has some significance, but that won't apply to dates, since the only place you can viably apply it is to the year, and then the only year within living memory would be 2002, where the removal of the 0s would result in 22.
Re: vb: help me code a quick/basic adding program (for numerology)
0s have no special significance. Think of rule 1 as a description rather than a rule! There seems to be some doubt about rule 2 also in that a lot of numerologists don't observe it at all and some treat it as significant (in some undefined way!) but still decide your 'life path' number on the one figure total so if you're an 11 you're still a 2 really. All very loose as these things tend to be.