Due to a known issue in SilkPerformer 2007, the StrSearchDelimited function will not return the substring stored in sTarget when the STR_SEARCH_IGNORE_WHITESPACES flag is used. The following code should print the string "Borland" to the Virtual User output pane: transaction TMain var sSelectActId,sString, sSubS : string; begin sString:= "Hello Borland World"; StrSearchDelimited (sSubS, STRING_COMPLETE, sString, "Hello", 1,"World", 1, STR_SEARCH_FIRST|STR_SEARCH_IGNORE_WHITESPACES); print(sSubS); end TMain; However when executed in SilkPerformer 2007 the string does not get printed. It is possible to workaround this issue by omitting the STR_SEARCH_IGNORE_WHITESPACES flag. The problem has also been addressed with SP76_Hotfix_24, which can be obtained by contacting Support .
↧