Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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