on 03-29-2023 12:45 AM
Hello, I hope you could help me.
I have in a field different palletizations with different dimensions. Now I would like to search in the field where the first number is and cut off the text before it. The numbers can be from 1-10.
Ex. Double EU 1600x800 --> Output: Double EU
Miele 800x1456 --> Miele
I had tried InStr, but fail because the numbers can contain a value from 1-9.
If you always have a single space in the middle:
local stringvar yourField := "Miele 800x1456";
Split(yourField, " ")[1];
Otherwise:
local stringvar yourField := "Miele 800x1456";
Local numbervar i;
Local stringvar result;
For i := 1 to Len(yourField) step 1 do
(
IF isnumeric(yourField[i]) Then Exit For;
result := result + yourField[i];
);
result;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.