KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: DVC does not have the method: Left()
Topic Summary: A proposed replacement for parsing complex lists
Created On: 01/22/2022 01:07 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 DVC does not have the method: Left()   - Edgar - 01/22/2022 01:07 PM  
Keyword
 01/22/2022 01:07 PM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 1260
Joined: 04/03/2009

argument$ = "first\last"

 

length& = InStr(argument$, "\")

If length& = 0 Then

   TTSPlayString "missing success " & argument$

Else

   argument$ = Mid$(argument$, 0, length& - 1)

   If argument$ = "first" Then

      TTSPlayString "has success"

   Else

      TTSPlayString "has failure"

   End If

End If

 

argument$ = "missing"

 

length& = InStr(argument$, "\")

If length& = 0 Then

   TTSPlayString "missing success " & argument$

Else

   argument$ = Mid$(argument$, 0, length& - 1)

   If argument$ = "first" Then

      TTSPlayString "has success"

   Else

      TTSPlayString "has failure"

   End If

End If



-------------------------

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card with 3 1920x1080 monitors

Statistics
32285 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 508 guests browsing this forum, which makes a total of 508 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.