Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Upper and separete by dots


  • Please log in to reply

#1
johnyboy70

johnyboy70

    New Member

  • Member
  • Pip
  • 1 posts
Hi everyone :) ,

I am new here and also new at programming.
The first qeustion is: I want a user to full in a form. In that form I ask
there name, last name, initials and some more info. I want to have the first letter
of his/her name, last name to capital and all of there initials all.
But for intials it has to separete by dots. example: Johny Black J.B.W.


I found out how the make it capital, but I have a problem here. If you look you will see
0, 10. It will make 10 letters to capital after 10 letters its gives a error.
Is there a way to do it automaticly without having to fill the numbers in?

If not IsDbNull(rs("cp_initials")) Then
Dim initials as string = rs("cp_initials").Substring(0, 10)
initials = initials.ToUpper()
rs("cp_initials") = initials + rs("cp_initials").Substring(10)
End If

the next qeustion is: some users fill by them self the dots in the initails.
So i need to make an "checker" to see if there are not dots and fill then the dots in.
To see if the user did fill in any dot or not, because if I do it autmaticly there will
be more dots in the initails then its necessary.

I try few things as a newbie, but that made its only worse. So any help wil be appreciate.

Greets,

Jonhy
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP