Author Topic: A question on find$ macro.  (Read 447 times)

clamicun

  • Member
  • **
  • Posts: 240
A question on find$ macro.
« on: September 19, 2016, 10:56:23 AM »
A question on find$ macro.

eg.
thestring db "1234.56",0
eax = find$(offset thestring,".")
returns 5

Is there a function or a macro - to check on 2 dots ?

thestring2 db"123.4.56
macro or function ???

Thank you

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4814
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: A question on find$ macro.
« Reply #1 on: September 19, 2016, 11:30:20 AM »
Use the same macro again but add one (1) to the return value from the first macro call and use it as the address to start from.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

clamicun

  • Member
  • **
  • Posts: 240
Re: A question on find$ macro.
« Reply #2 on: September 20, 2016, 03:19:11 AM »
Does make sense ..
Thank you Hutch

thestring db "1234.56",0
eax = find$(1,offset thestring,".")
returns 5

thestring2 db "1234.56.78",0
eax = find$(5,offset thestring2,".")