kenneth santianez
kenneth santianez

Reputation: 17

vb.net: Select the data stored in my.settings properties

I am new to vb.net programming. Is there any possible way to query SELECT the data stored in my.settings?

Example value in my.settings: 'SN-16-0002'.

In my query i just want the last 4 digit, pls help

I will appreciate your help.

Upvotes: 1

Views: 100

Answers (1)

Jande
Jande

Reputation: 1705

Try this:

  'value is 'SN-16-0002'

     dim y = My.Settings.value.Substring(value.Length - 4)

My.Settings Object

String.Substring Method

Upvotes: 1

Related Questions