Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

StrGetTokens confusion


2 replies to this topic

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 04 April 2001 - 19:52

I'm in the process of debugging some code right now and the way the person is using StrGetTokens is as follows...

if (StrGetTokens(listID, szValue, "/") > 0)  

I think this may be a problem because of the way InstallShield has this in there help file.  They say if the function returns 0 it worked ok, if it returns <0 it failed.

In there example of this function they  use >0 just like the code I'm trying to debug

So my question is what does it mean when StrGetTokens returns a number greater than 0?

Thanks in advance,
Justin O. Ramsland


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 05 April 2001 - 07:06

I believe this is a typo in the sample code in the help file. It should read:

if (StrGetTokens (listID, svSearchPath, ";") < 0) then
        // Report the error.