--
You received this message because you are subscribed to a topic in the Google Groups "CommandFusion Software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commandfusion/9e_WL5IdfM4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
De: Jarrod Bell Enviada: domingo, 7 de julho de 2013 09h13 Responder a: comman...@googlegroups.com Assunto: Re: Dynamic botton |
For the first option you're missing ; at the end of the Cond=t["[RecordID]"] line, so it should be : CF.getJoin("d1", function(j,v,t) {Cond=t["[RecordID]"];});
For the second option, equating a variable with a JS call will give you an error.
--
You received this message because you are subscribed to a topic in the Google Groups "CommandFusion Software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commandfusion/9e_WL5IdfM4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
parseInt will convert strings whose leading characters are digits forming a legal number e.g. parseInt( -123alpha) will result in -123.
-123alpha is not a numeric string but rather a string whose leading characters form a number.
As a general shortcut for converting a string which is truly a number the following will work and is very fast
x= (numericstring-0); This is handy because of the overloading of addition as an operator, and can be used as a term of an expression
The above handles all sorts of numbers fixed point (integers), floating point , etc.
var x="1" var y=2;
z=x+y results in z="12"
z=(x-0)+y results in z=3
When comparing two things one of which is a numericstring and the other a number no conversion should be necessary as JS will automatically do the conversion unless you are testing for absolute equality (===).
var x=123; var y="123"; x==y should be true but x===y should be false
--
--
You received this message because you are subscribed to a topic in the Google Groups "CommandFusion Software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commandfusion/9e_WL5IdfM4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to commandfusio...@googlegroups.com.