Weird RunRev IDE Problem

Dave dave at looktowindward.com
Thu Jan 17 10:50:39 EST 2008


Hi,

I've changed it now. I agree "it" is awful, but overwriting input  
parameters is almost as bad. The problem here is that "convert" is a  
command rather than a function, it would be *much* better to make it  
a function and return the result.

All the Best
Dave

On 17 Jan 2008, at 15:41, Eric Chatonet wrote:

> It works but why would you prefer the most complicated when the  
> simpler is available?
> BTW I avoid to use 'it' every time it appears possible and prefer  
> to declare a variable of my own: 'it' can be changed by some  
> commands along a handler and this is able to put a mess :-)
>
> Le 17 janv. 08 à 16:24, Dave a écrit :
>
>> On 17 Jan 2008, at 15:04, Eric Chatonet wrote:
>>
>>> From Convert docs:
>>> If the dateAndTime is a container, the converted date and time is  
>>> placed in the container, replacing the previous contents. If the  
>>> dateAndTime is a string, the converted date and time is placed in  
>>> the it variable.
>>> So in your case, returned value is not in 'it' but in 'myFieldValue'
>>
>> Opps! Missed that bit! What happens if you use 0 + myFieldValue?????
>>
>> (which is how I got around the problem)
>>
>> All the Best
>> Dave
>
> Best regards from Paris,
> Eric Chatonet.
> ----------------------------------------------------------------
> Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
> Email: eric.chatonet at sosmartsoftware.com/
> ----------------------------------------------------------------
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list