View Full Version : DLL: CountSubString
RizlaUK
04-28-2008, 07:50 PM
ok, i know this can be done in AMS with some string actions but i needed it fast and 3 lines of code in a dll and its done
returns how many times a substring is found in a string (handy for counting items in a delimited string, well thats what i needed it for)
Intrigued
04-28-2008, 09:42 PM
Mirrored on amsuser.com, thanks.
http://www.amsuser.com/ams/examples/DLLCountSubString-AMS7-RizlaUK.apz
123456789
04-29-2008, 08:31 AM
Rizla , A great man
tanks
Derek
04-29-2008, 01:38 PM
Cool, Riz. Thanks! :yes
I personally think the String actions in AMS7 can be a PITA to work with. Strangely enough, they were much easier in AMS4
RizlaUK
04-29-2008, 04:08 PM
i never used AMS4, i jumped in at 6 but i agree the string functions can be a pain sometimes and there seems to be some obvious functions missing as well, just like the String.Count and String.ByteLength, both being functions i needed but were not there!!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.