in che linguaggio???

In VB puoi usare Mid

Ciao
Simone