Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - StrCSpnI

Posted in WinTask

'
' StrCSpn - search a string for the first occurrence of any of a group of characters.
'   note: the search is NOT case-sensitive
'

' Author: Joe Strazzere
'

 

dim ptr1 as unsigned
dim ptr2 as unsigned

 

ptr1=allocate(255)
ptr2=allocate(255)

 

' the string in which to search
PokeString(ptr1,"This is, a test",1)

 

' the group of characters to search for
PokeString(ptr2,"ABC",1)

 

' returns the number of characters before the found character
ret=External("shlwapi.dll","StrCSpnIA",ptr1,ptr2)

msgbox(str$(ret))


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now