Hi Philippe, the 'hm variable is local to the function, because it is the name of an argument of the TRANSFO-TIME function. (arguments are local) If you want to retain the returned value, you should store it somewhere. The following would work too:
hm: transfo-time heure , but the 'hm word is not the same word as the 'hm word used in the function in this case. ----- Original Message ----- when I write heure: transfo-time heure.. the variable is grabbed by the variable, right ? ----- Original Message ----- > try instead: > > heure: "12.01" > heure: transfo-time heure > > > ----- Original Message ----- > Hi, > > I really need to understand why the return of this function doesn't work. > > > transfo-time: func [hm] [ > > hm: parse hm "." > hm/1: to-integer hm/1 > hm/2: to-integer hm/2 > hm: to-time join hm/1 [":" hm/2] > hm > ] > > heure: "12.01" > > transo-time heure > > heure: hm > print heure; nothing is print.. heure has no value now.. why ??? > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
