![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: DVC does not have the method: Replace () Topic Summary: Here is a replacement Created On: 01/27/2022 12:07 PM Status: Post and Reply |
|
![]() |
|
argument$ = "re-creating the Replace () method" CLI$ = "" ' here is what I am trying to accomplish: 'argument$ = Replace(argument$, " ", "_") 'argument$ = Replace(argument$, "-", "_")
' this is a solution: length% = Len( argument$) increment% = 0 ' I find it hard to believe that there is no For…Next, but… Do letter$ = Mid$(argument$, increment%, 1) If letter$ = " " Or letter$ = "-" Then CLI$ = CLI$ & "_" Else CLI$ = CLI$ & letter$ End If increment% = increment% + 1 Loop Until increment% = length% ' and, as proof, make sure that these keystrokes can go into a text field: SendKeys CLI$ ------------------------- -Edgar |
|
|
|
![]() |
|
Thanks for making DVC even more powerful, Edgar.
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.