|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
"instr" question
hi again. the "instr" function finds the index of one string in another, right? what if i want to find every occurence...do i use the same syntax?
__________________
"Operator, Give me the number for 911" - Homer J Simpson JonnoWalmsley.com vv Latest Image vv
|
|
#2
|
||||
|
||||
|
you would want to use the instr() nested in the mid(). Every time you iterate the loop, assign the value of your instr() at that iteration to an index variable so that next iteration, the mid function will start from that point.
__________________
Fisherman "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > "instr" question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|