Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Work Issues
  4. A world leading scan and imaging application

A world leading scan and imaging application

Scheduled Pinned Locked Moved Work Issues
databasetoolsquestioncareer
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Account Removal
    wrote on last edited by
    #1

    Once in a while I run into a situation that really surprises me. Being on a job to install and configure a world leading scan and imaging application I was surprised about the built-in scripting tool available. The built-in scripting language is a rather old fashioned Basic derivate known under the name Softbridge Basic Language (SBL). I had no choice. I needed to do some scripting in the Validation process of this product and no other tools available. SBL indeed was the delighted way to go. Not that I’m afraid of a little old fashioned coding. I have had my share of Assembler and Cobol coding in the past. One of the simple things I hade to do is some character replacement in strings. A Replace statement please? Not. Definitely not. So once again I had to write one of my own. If you ever happen to collide with this world leading scan and imaging application then I have at least some code for you. Here it is: function replacestring (source as string, _ search as string, repl as string) as string ' ' One VB6 Replace replacement ' dim index as integer ' index in source dim position as integer ' instr position in source dim result as string ' build result here ' index = 1 result = "" do position = instr (index, source, search) if position > 0 then result = result & mid$ (source, index, position - index) & repl index = position + len (search) else result = result & mid$ (source, index) end if loop while position > 0 ' replacestring = result end function

    Aad Slingerland Zevenaar The Netherlands

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups