How to add a letter at the begining of a number

i want a code in vb to add a letter at the begining of a number. I have counter in vb application, it counts everytime when you exported the data to a file.
exp: counter number: 1 ---it has to be with the code ---> AB1; count nr: 2 -- has to be ->AB2, etc ..... .
the code has to add "AB" everytime at the begining of a numer.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Patrick MatthewsCommented:
Hi jefmelkenbeek,

How is this counter used?  Where is it stored?  How do you use it in your app?


jefmelkenbeekAuthor Commented:
hi patrick,

it counts everytime when you export data to word.
exp: all textfields exported to word.

when i click on export_click button ( it has to count.
it is stored under:
Private sub export_click (byval sender as ....)
dim ...
if (flagConfirmed = False) then
 label1.text = readLastnumer () + 1
end if

Couldn't you do something like this?
label1.text = "AB" &  readLastnumer.ToString

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jefmelkenbeekAuthor Commented:
no it doesn't work.
label1.text = "AB" &  readLastnumer.ToString in stead of label1.text = readLastnumer () + 1 ==>doesn't work
jefmelkenbeekAuthor Commented:
sorry Patrick,

it works :-). thank you very much for your help

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.