![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I think he is looking for something like this:
Code:
Sub Globals
End Sub
Sub App_Start
' Create a Form1 and add a ListBox1
FillListBox("1234567", "")
Form1.Show
Msgbox(ListBox1.Count)
End Sub
Sub FillListBox(value, combi)
If value = "" Then
ListBox1.Add(combi)
Else
For i = 0 To StrLength(value) - 1
FillListBox(StrRemove(value, i, 1), combi & SubString(value, i ,1))
Next
End If
End Sub
specci48 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Numbers lock key | davelew1s | Questions & Help Needed | 0 | 06-14-2008 07:26 PM |
| Combinations application | Stellaferox | Share Your Creations | 0 | 02-21-2008 08:24 PM |
| Combinations Sub: choose(n,k) | Stellaferox | Code Samples & Tips | 2 | 02-21-2008 06:51 PM |
| Combinations function | derez | Share Your Creations | 0 | 02-04-2008 11:40 AM |
| code to write out combinations e.g. (10 choose 3) | Stellaferox | Questions & Help Needed | 4 | 02-04-2008 05:51 AM |