Author Topic: Sentence Split  (Read 42700 times)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Sentence Split
« Reply #60 on: October 13, 2005, 05:59:45 PM »
You would barf in absolute disgust if I showed you the first forms I started working on in VB.  VB is a language that takes some practice to make look elegant.

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #61 on: October 14, 2005, 02:16:39 AM »
I bet on that, practive gives perfection you know.
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #62 on: October 14, 2005, 08:20:21 AM »
Here is my program, it is finaly working. or atleast I belive it does
you can change the amount of generations it show, how good a gene is, its frequens in the population. how many alleles it is, and sexes. What do you think guys?
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Sentence Split
« Reply #63 on: October 14, 2005, 08:36:31 AM »
Well I get an overflow whenever I click the graph button, no matter what values I put in...
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #64 on: October 14, 2005, 08:39:27 AM »
0 values arent possible, with 2 alleles you need to fill gene A/B with 3 alleles All genes have to have values.
but the program is acting wierd since I changed it into a picturebox
« Last Edit: October 14, 2005, 08:41:04 AM by Zelos »
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Sentence Split
« Reply #65 on: October 14, 2005, 08:41:36 AM »
Yes but I still get overflow.
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #66 on: October 14, 2005, 08:56:28 AM »
strange, im using the same file and it worx for me. are you using half best or straight mode? if ure using half best you gotta give it a value aswell. else I have no idea. But here is the coding if you wanna take a look
just remember its my copyright
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Sentence Split
« Reply #67 on: October 14, 2005, 09:08:25 AM »
Works fine for me. Not a bad little program.

You have to enter values into all the genes text boxes or else it will crash. That is the only problem.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #68 on: October 14, 2005, 09:42:47 AM »
as I said, py how do I fix that?
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Sentence Split
« Reply #69 on: October 14, 2005, 09:51:57 AM »
Just add a bit of code that checks if any of these values are zero. If they are then display a message and "exit sub"

eg.
Code: [Select]
if A1.text="" then
  msgbox("You must enter a value into the first gene before you can run the program")
  exit sub
endif

just OR your conditions together to cover all 6 gene textboxes and you have a failsafe.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #70 on: October 14, 2005, 11:10:42 AM »
ok thx. I wonder if there is something wrong with the program or if its so that the lines are to small or if its so that they put over each other but sometimes the graphes aint showing
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Sentence Split
« Reply #71 on: October 14, 2005, 11:21:34 AM »
The showed every time I ran the program.

What conditions make them NOT show?
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Sentence Split
« Reply #72 on: October 14, 2005, 11:56:37 AM »
I'll totally DL and run it later today.  Good work Zelos.

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #73 on: October 14, 2005, 01:04:14 PM »
I ran with more than 2 sexes or more than 2 alleles. or both of them. but it might simply be that they are over each other or something.
thx nums, but I would be happy if you could come with how I could improve the coding to be more professional.
« Last Edit: October 14, 2005, 01:04:23 PM by Zelos »
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Sentence Split
« Reply #74 on: October 14, 2005, 01:22:51 PM »
Actually it is better to use IsNumeric()-command, to check if there is any errors.

Exception handling, as I have stated before, everything that can be done wrong in a computer program, goes wrong. Somehow a user will always try to test the program in the most absurd ways, just to check if it works.
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001