News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

A question on find$ macro.

Started by clamicun, September 19, 2016, 10:56:23 AM

Previous topic - Next topic

clamicun

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--

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.

clamicun

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,".")