@ulrik Ulrik, Ulrik Ulrik you are a genius - great - looks a lot more complicated than mine but it works.
There is still one small problem.
It is possible and leads to the unloading of the sample if
the user sets the start knob to 2000 samples, for example.
and the end knob BELOW 2000.
Basically, the start knob can only go as far as the start value of the end knob and vice versa.
The two values must never overlap.
Another thought experiment will be that a call of the samples via combobox will fetch the SampleLenght - i.e. already outside the inline function.