imoree Posted December 10, 2011 Posted December 10, 2011 (edited) anyone know what happened to their blog or is it that they just havent updated it sinCe Last year September? thank u. -i I am trying to figure out what the "999999999999999" is doing here in this partial script please: top = getValue( " & variableName & " ; 1 ); " & variableName & " = middlevalues( " & variableName & " ; 2 ; 999999999999999 )]; OR is it just as a placeholder? Edited December 10, 2011 by imoree
bcooney Posted December 10, 2011 Posted December 10, 2011 It's just a big number so that middlevalues starts at position 2 and "goes on 99999999999 places". SFR seems to have gone on hiatus. They haven't posted on TechNet in a while too.
comment Posted December 10, 2011 Posted December 10, 2011 I am trying to figure out what the "999999999999999" is doing It's an example of bad coding practice. MiddleValues ( listOfValues ; 2 ; 999999999999999 ) will return the same thing as: MiddleValues ( listOfValues ; 2 ; ValueCount ( listOfValues ) ) as long as listOfValues contains less than 999999999999999 values. While it's extremely unlikely that a list would exceed such a high number, the code introduces an unnecessary arbitrary - and therefore confusing - constant. The real objective here is to get all the values in the list except the first one - and the best way to achieve it is is to say exactly that: RightValues ( listOfValues ; ValueCount ( listOfValues ) - 1 ) 1
bcooney Posted December 10, 2011 Posted December 10, 2011 I agree, comment. Using ValueCount is much more robust.
imoree Posted December 10, 2011 Author Posted December 10, 2011 Ok then. i dont want to add to my already bad coding habits!! LOL thanks Comment..
Recommended Posts
This topic is 4730 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now