Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Register
    • Login

    NewBie Quest: Compare Part of strings

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 287 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post