NewBie Quest: Compare Part of strings



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 12/01/2005 at 04:02, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   8.100 
    Platform:      
    Language(s) :   C.O.F.F.E.E  ;

    ---------Hello,
    ich want to check if one string is a part of an other. I know that in the SDK is written :

    Bool FindFirst(const _<_a title="class string" href= "mk:@msitstore:c:\dokumente%20und%20einstellungen\schlenker\desktop\r8sdkchm2003-12-10.chm::/pages/c4d_string/class_string800.html"_>_ color=#800080 String& Str, LONG* Pos, LONG Start = 0) c_<_h4_>_/H4>

    Searches this string for the first match of the substring.

    But I am not good in handling the SDK.
    I try this but it dosen't work

    var test="My Hello";
    var sertest="Hello";
    var pos;
    if(FindFirst(sertest,pos,0)->test){
    println("Gefunden");
    }

    Can someone please correkt my Example?
    Thanks!
    Tim



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 12/01/2005 at 07:47, xxxxxxxx wrote:

    Unless they've changed COFFEE, FindFirst() is C++ SDK. In COFFEE, it's strstr(str,phrase,[pos]).

    Check the COFFEE docs.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/01/2005 at 01:37, xxxxxxxx wrote:

    Thanks very much! The search function in the COFFEE offline docs is very bad.

    Greetings Tim


Log in to reply