Dear all,
I found some interesting suggestions in the forum but I didn't solve my problem completely.
I have a form that collect the activities related to a single project.
Each activity has a IDPh text field where the user add the number of the phase. (1.0;1.1; 2.0;etc.)
The user is free to select the format: like 1.0;1;01; etc.
Of course he should keep a certain coerence, without mixing different formats.
In any case, I have the common problem to sort correctly this field and I partially solved by the function CInt but the result doesn't satisfy me completely. Infact, if the user write activities like :
1; 1.1; 1.1.1; 1.2
with CInt I will obtain the following result:
1; 11; 111; 12
with a wrong activities order.
To solve I should force the user to type in this way:
1.0.0;1.1.0;1.1.1;1.2.0
then with Cint: 100;110;111;120.
The problem is that the user is not alwsy so accurate to write the numbers.
Any idea to improve?
thanks a lot.
Marco
I found some interesting suggestions in the forum but I didn't solve my problem completely.
I have a form that collect the activities related to a single project.
Each activity has a IDPh text field where the user add the number of the phase. (1.0;1.1; 2.0;etc.)
The user is free to select the format: like 1.0;1;01; etc.
Of course he should keep a certain coerence, without mixing different formats.
In any case, I have the common problem to sort correctly this field and I partially solved by the function CInt but the result doesn't satisfy me completely. Infact, if the user write activities like :
1; 1.1; 1.1.1; 1.2
with CInt I will obtain the following result:
1; 11; 111; 12
with a wrong activities order.
To solve I should force the user to type in this way:
1.0.0;1.1.0;1.1.1;1.2.0
then with Cint: 100;110;111;120.
The problem is that the user is not alwsy so accurate to write the numbers.
Any idea to improve?
thanks a lot.
Marco