|
-
Oct 29th, 2005, 06:09 PM
#1
Thread Starter
Hyperactive Member
String(Y, str)
Ok i have this coding.
Code:
Public Sub xXxoOozZz()
Dim Y As Integer, Z As Integer
Dim X As Long
Dim str As String, Word As String, NewWord As String
str = InputBox("Choose Letter (s) To Gen With", "Choose Letter !")
X = lstRoot.ListCount - 1
lstRoot.ListIndex = X
Y = 1
Z = 0
Do Until X = -1
Do While Z <= 32
Do While Y <= 32
Word = txtBefore.Text & lstRoot.List(X) & txtAfter.Text
NewWord = String(Y, str) & Word & String(Z, str)
If Len(NewWord) <= 32 Then lstGen.AddItem NewWord
Y = Y + 1
Loop
Y = 0
Z = Z + 1
Loop
X = X - 1
Y = 0
Z = 0
Loop
End Sub
if Str has the value = XoX if will only take the X
how would i make it take the whole value but still do the Looping thing.
-
Oct 29th, 2005, 06:39 PM
#2
Re: String(Y, str)
Why don't you copy down what you have the user enter, and then what you want the program to display. It is very confusing as to what is and isn't happening correctly with your example.
-
Oct 29th, 2005, 06:42 PM
#3
Thread Starter
Hyperactive Member
Re: String(Y, str)
User enters a Word lets say Ricky.
I want program to do this.
Ask the user for an input. could be a single letters could be a few letters. my code above works for single letters but not for a few letters.
user decides on XoX.
program will make.
XoXRicky
XoXXoXRicky
XoXXoXXoXRicky
XoXXoXXoXXoXRicky
RickyXoX
RickyXoXXoX
XoXRickyXoX
XoXRickyXoXXoX
Get me now ??
-
Oct 30th, 2005, 07:27 AM
#4
Thread Starter
Hyperactive Member
-
Oct 30th, 2005, 09:53 PM
#5
Re: String(Y, str)
Just a few For loops would do what you need...
-
Nov 1st, 2005, 05:32 AM
#6
Thread Starter
Hyperactive Member
Re: String(Y, str)
wana explain that a little better timeshifter.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|