Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4730 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (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 by imoree
Posted

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.

Posted

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 )

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.