Results 1 to 3 of 3

Thread: Help file: Extract$

  1. #1
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    160

    Help file: Extract$

    Here is a simple example of the usage of the Extract$ keyword.

    ' Usage of the EXTRACT$ Keyword example'
    ' Written by Michael Clease
    
    
    Dim sMainString    As String Value "The quick brown fox jumped over the lazy dogs"
    Dim sMatchString   As String Value "over"
    Dim sExtractString As String
    DIM Start as DWORD VALUE 4
    DIM sMsg as string
    
    
    sExtractString = Extract$(Start,sMainString,  sMatchString)
    
    
    sMsg  = "sMainString    = " & sMainString    & $CRLF
    sMsg += "sMatchString   = " & sMatchString   & $CRLF
    sMsg += "sExtractString = " & sExtractString & $CRLF & $CRLF
    
    
    MsgBox 0, sMsg
    
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,814
    Rep Power
    10
    Got it, thanks
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    that's helpful michael to see an extract example I was looking for last week. -lydia
    hasta la vida

Similar Threads

  1. EXTRACT$
    By catventure in forum Preview testing
    Replies: 3
    Last Post: 02-09-2008, 20:10
  2. 2 Typos EXTRACT$
    By Michael Clease in forum Fixed or cleared errors in help material
    Replies: 1
    Last Post: 04-11-2007, 09:40

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •