Problem Calling Custom Card Props with the Same Name Using Switch

Jacques Hausser jacques.hausser at unil.ch
Mon Nov 30 05:43:14 EST 2009


Hi René,

I know ! Nobody will have problems with multi-letter names : the CPropIWouldLikeToCallY or estimatedSlopeOfTheRegression  would work fine, but how boring to type compared to the usual a ! And I didn't see anywhere in the docs a caveat against the use of one letter names...

Jacques

Le 30 nov. 2009 à 11:23, René Micout a écrit :

> Hello Jacques !
> for the specific issue of temporary variables, I use the following names, which solves, I think, this type of problem: vtA, vtB, vtC, etc.. (pour variable tampon (ou temporaire) a, b, c, etc..)
> Bon souvenir de Paris
> René
> 
> Le 30 nov. 2009 à 10:42, Jacques Hausser a écrit :
> 
>> 
>> Le 30 nov. 2009 à 03:25, J. Landman Gay a écrit :
>> 
>>> This fails for me too, but only if I keep the property name you assigned. If I change the property to "cY" it works as expected. I'm not sure why, but I'd guess the engine is using "y" for something. Since I always preface my custom properties with "c", I haven't run into this before, but I think you should probably bug-report it. It's an odd one.
>> 
>> 
>> Related remark: I remember I had sometime (not systematically) problems when giving one letter names to variables or parameters (e.g. a,b or x,y, which are so standart, in regression for example), but I was too lazy to digg deep in this question, it was simpler to change the name of the variable... but it IS some hidden pitfall somewhere.
>> 
>> Jacques
> 
> _______________________________________________
> 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

******************************************
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax: 	++ 41 22 366 19 40
mobile:	++ 41 79 757 05 24
E-Mail:	jacques.hausser at unil.ch
*******************************************




More information about the use-livecode mailing list