| | | Forum Newbie
       
Group: Forum Members Last Login: 4/7/2010 2:52:10 AM Posts: 1, Visits: 2 |
| | hi i have made a listbox in which u can add a number.but what happens if i add a something else in the listbox accept number than whole programme shut down .i want my list box make in such a order that u can only enter number or . nothing else please if somebody solve my query it would be better. thanking u
rahul |
| | | | Forum Member
       
Group: Forum Members Last Login: 4/12/2010 10:24:58 AM Posts: 35, Visits: 70 |
| | | | | 
Forum God
       
Group: Forum Members Last Login: 12/4/2011 11:46:01 PM Posts: 545, Visits: 2,544 |
| Check out the IsNumeric() function in your library. 
________________________________________________________________ "So much to learn. So little time to do it. Wise men know it's later than one thinks"! Mark's Syntax.Zip Pause Sub I don't answer programming questions via PMs. That's what the forum is for! |
| | | | 
Forum God

Group: Moderators Last Login: 2 days ago @ 6:29:46 PM Posts: 1,889, Visits: 5,254 |
| Welcome to A1vbcode rahul.  rahul_x2001 (3/20/2010)
hi i have made a listbox in which u can add a number.but what happens if i add a something else in the listbox accept number than whole programme shut down .i want my list box make in such a order that u can only enter number or . nothing else please if somebody solve my query it would be better. I'm just wondering why you need to add numbers to a ListBox? As you add a number then you add another number the second number will go on a new line unless you remember the text then Clear the ListBox and add the second number to the original numbers. The program shouldn't shutdown what ever you're adding to the ListBox. There is something in your code thats making it shutdown. Please post your code inside Mark's Syntax.zip What are you trying to achieve exactly? 
Keith
I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning. |
| |
|
|