You need to sign in to do that
Don't have an account?
Pok Lau
Retreive range of values
These are the fields on my custom object
AUTO_ID(auto number) | version (text)
1 8.3.1
2 8.3.2
3 8.3.3
4 8.4.1
How can I display all the versions between 8.3.1 to 8.4.1.
As both the AUTO_ID and versions are of type string. Please help or suggest a best way to solve this problem.
AUTO_ID(auto number) | version (text)
1 8.3.1
2 8.3.2
3 8.3.3
4 8.4.1
How can I display all the versions between 8.3.1 to 8.4.1.
As both the AUTO_ID and versions are of type string. Please help or suggest a best way to solve this problem.
To dissaemble the version numbers, I suggeest you use the String.Split() method and split it on the period. You will then have an array of the 3 component numbers of the version. So: You will then end up with an 3-element array with [8], [3], and [1] in it. And as a side-note, Split uses regular expression, so that's why you need the 2 slashes before the period.
Below is some pseudo-code. I have NOT complied it or tested it, so it might need some modification or fixes. But it should be a good place for you to start.