Converting Datatypes ?



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

    On 20/12/2010 at 10:06, xxxxxxxx wrote:

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

    ---------
    Hi Guys,

    I wan't to set an attribute of the datatype LONG with an String read from a file. This string is "1" for example. But how can i convert this "1" to an integer ?

    Thanks in advance, nux 😄



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

    On 20/12/2010 at 10:12, xxxxxxxx wrote:

    yourstring.StringToLong();



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

    On 20/12/2010 at 10:21, xxxxxxxx wrote:

    Does not seem to work in COFFEE...
    Sure it's for Coffee and not for C++ ? ;)

    thx anyway



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

    On 20/12/2010 at 10:26, xxxxxxxx wrote:

    oh. you may use evaluate(str)



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

    On 20/12/2010 at 10:28, xxxxxxxx wrote:

    Wow cool that works thanks :)
    It converts to real, but i don't think this will be bad :)


Log in to reply