Microsoft Visual Basic 6.0 for PC Logo

Related Topics:

Posted on Mar 04, 2009
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

With spaces and exclude spaces

Accept for a string as input.display the total number of character..

1 Answer

Fred Block

Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Expert 289 Answers
  • Posted on Apr 23, 2009
Fred Block
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Apr 21, 2009
Answers
289
Questions
1
Helped
166294
Points
608

Use the Len function
number_or_characters = Len(your_input_string)

Taking input from a TextBox is easy:
number_or_characters = Len(txtInput.Text)

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

How do i alter small letters to capital letters on my nokia 2610 cell phone

For writing text: to add a space, press 0. To quickly change the text input method, press # repeatedly and
check the indicator at the top of the display. To add a number, press and hold the desired number key. To get a
list of special characters when using traditional text input, press *; when using predictive text input, press and hold *.
0helpful
1answer

In the programs I have made when I use the Request enter a integer, I always have to press the alpha button before entering a # in the field when running the program, is their a way to program a request...

Hello,
The syntax of the command is as follows
:Request Message, VarName
where Message is a character string containing the message that will be displayed as a prompt, and VarName is the name of the string variable where the input will be stored.
If you want to input a numerical value you must convert it from character string to a numerical value (I know, it is like splitting hair but string 123456 is not the same as number 123456)
You convert from string to numerical value with the expr() command.
Exemple:
:Request "Value of a? ", s
:expr(s) --> a

That should do it.

Hope it helps.
0helpful
1answer

Gidday, I have windows XP on my laptop, and use Avira Antivirus Personal Free Edition. I have disabled my windows firewall as reccommended. I use a trading platform, CMC Marketmaker, and cMC has advised me...

Read through this I think it will help:-
Processes to be omitted for the Guard
All file accesses of processes in this list are excluded from monitoring by the Guard.
Input box
In this box you can enter the name of the process that is not included in the on-access
scan. No process is entered as the default setting. The names of the individual process
can most easily be obtained via the task manager. The "Processes" tab in the task
manager contains the names of all currently active processes. Select "your" process and
enter its name under "Image Name".
Note
You can enter up to 20 processes.
Warning:
Only the first 15 characters of the process name (including the file extension) are
considered. If there are 2 processes with the same name, Guard excludes both processes
from the monitoring.
Warning
Please note that all file accesses by processes recorded in the list are excluded from the
scan for viruses and unwanted programs! The Windows Explorer and the operating
system itself cannot be excluded. A corresponding entry in the list is ignored.
Add rule
With this button, you can add the process entered in the input box to the display
window.
Delete
With this button you can delete a selected process from the display window.
File objects to be omitted for the Guard
All file accesses to objects in this list are excluded from monitoring by the Guard.
Note
The entries on the list must not result more than 6000 characters in total.
Input box
In this box you can enter the name of the file object that is not included in the on-access
scan. No file object is entered as the default setting.
The button opens a window in which you can select the file object to be excluded.
Add rule
With this button, you can add the file object entered in the input box to the display
window.
Delete
With this button you can delete a selected file object from the display window.
Please observe the following points:
– The file name can only contain the wildcards * (any number of characters) and
? (a single character).
– Directory names must end with a backslash \, otherwise a file name is assumed.
– The list is processed from top to bottom.
– Individual file extensions can also be excluded (inclusive wildcards).
– If a directory is excluded, all its sub-directories are automatically also excluded.
– The longer the list is, the more processor time is required for processing the list
for each access. Therefore, keep the list as short as possible.
– In order to also exclude objects when they are accessed with short DOS file names
(DOS name convention 8.3), the relevant short file name must also be entered in
the list.
Note
A file name that contains wildcards may not be terminated with a backslash.
For example:
C:\Program Files\Application\applic*.exe\
This entry is not valid and not treated as an exception!
Note
In case of dynamic drives which are mounted as a directory on another drive, the alias of
the operating system for the integrated drive in the list of the exceptions has to be used:
e.g. \Device\HarddiskDmVolumes\PhysicalDmVolumes\BlockVolume1\
If you use the mount point itself, such as ‚C:\DynDrive’, the dynamic drive will
be scanned nonetheless. You can determine the alias of the operating system to be used
from the report file of Guard: Set the protocol function of the Guard to Complete in the
configuration under Guard :: Report. Now access the mounted drive with the activated
Guard. You can now read the drive name used from the report file of the Guard. The
report file can be accessed in Control Center under Local protection :: Guard.
Examples:
C:
C:\
C:\*.*
C:\*
*.exe
*.xl?
*.*
C:\Program Files\Application\application.exe
C:\Program Files\Application\applic*.exe
C:\Program Files\Application\applic*
C:\Program Files\Application\applic?????.e*
C:\Program Files\
C:\Program Files
C:\Program Files\Application\*.mdb
0helpful
1answer

Hitatchi ultravision 70 in rear projection

Its too simple to do in Java.
Accept String from user through appletviewer.

Use Concept of String .
From Begining fetch on by one character of that String.
now apply Sleep(700) by implementing Thread class.
Inside sleep(700) block simply display each character.

From:
SATYA PRAKASH (INDIA)
[email protected]
09304850882
8helpful
2answers

Can I get the asswer for the below questions

A book shop maintains the inventory of books that are being sold at the shop. The list has details like author, title, price, publisher and stock position. Whenever a customer wants a book, the sales person inputs the title and author and the system searches the list and displays a suitable message if it is not available. If it is available, the system displays the book details and requests for the number of copies required. If the copies are available, the total cost of the copies requested is displayed, otherwise the message ‘copies not in stock’ is displayed.
Design a system using a class called BOOKS with suitable member functions and constructors. Use new operator in constructors to allocate required memory space.
0helpful
1answer

Cannot find the serial key to the movie box studio instal disc

Hi yellowbret,

Sometimes the serial number is part of lager alpha/numeric character string. When tried to install and it asked you for the serial, look to see how many characters you can type into each text field. Its usually limited to amount of characters in the number. Once you have that information see if any of the numbers you can find match the total character input for the requested serial number. There is a series of numbers that are etched on the back center ring of most cd's, however, I'm not sure what they represent( I bet someone on here knows the answer to that). You may need a magnifying glass to read them. There several on-line serial key finder utilities you can explore. I hoped this helped.

Thank you for using FixYa.com

Sincerely, cyyyd7
0helpful
2answers

Help me

this the code for your problem. by the way this for vb6.0

Sub CountCharacters(Text As String)
Dim iVowel As Integer
Dim iCons As Integer
Dim iNum As Integer
Dim iSpace As Integer
Dim iOther As Integer

Dim cnt As Integer
Dim sChar As String

For cnt = 1 To Len(Text)
sChar = LCase(Mid(Text, cnt, 1))

Select Case sChar
Case "a", "e", "i", "o", "u" ' And sometimes "y"?
' Vowel
iVowel = iVowel + 1
Case "a" To "z"
' Includes the first case, but VB matches the first case and stops
iCons = iCons + 1
Case "0" To "9"
' Numbers
iNum = iNum + 1
Case " ", vbTab, vbLf
' Space characters
' Not including vbCr as this will likely be dealing with Windows text
' and I only want to match one character for a newline
iSpace = iSpace + 1
Case Else
If sChar <> vbCr Then iOther = iOther + 1
End Select
Next cnt

Debug.Print "Text: " & Text
Debug.Print "Vowels: " & CStr(iVowel)
Debug.Print "Consonants: " & CStr(iCons)
Debug.Print "Numbers: " & CStr(iNum)
Debug.Print "Space characters: " & CStr(iSpace)
Debug.Print "Other: " & CStr(iOther)
End Sub
0helpful
1answer

Help me

Sub CountCharacters(Text As String)
Dim iVowel As Integer
Dim iCons As Integer
Dim iNum As Integer
Dim iSpace As Integer
Dim iOther As Integer

Dim cnt As Integer
Dim sChar As String

For cnt = 1 To Len(Text)
sChar = LCase(Mid(Text, cnt, 1))

Select Case sChar
Case "a", "e", "i", "o", "u" ' And sometimes "y"?
' Vowel
iVowel = iVowel + 1
Case "a" To "z"
' Includes the first case, but VB matches the first case and stops
iCons = iCons + 1
Case "0" To "9"
' Numbers
iNum = iNum + 1
Case " ", vbTab, vbLf
' Space characters
' Not including vbCr as this will likely be dealing with Windows text
' and I only want to match one character for a newline
iSpace = iSpace + 1
Case Else
If sChar <> vbCr Then iOther = iOther + 1
End Select
Next cnt

Debug.Print "Text: " & Text
Debug.Print "Vowels: " & CStr(iVowel)
Debug.Print "Consonants: " & CStr(iCons)
Debug.Print "Numbers: " & CStr(iNum)
Debug.Print "Space characters: " & CStr(iSpace)
Debug.Print "Other: " & CStr(iOther)
End Sub
0helpful
1answer

Sender Id

Sender ID ecblank.gif ecblank.gif dot.gif ecblank.gif This is a descriptive title that identifies the sender -- usually the location of your fax machine or the name of your company or office. It is printed at the top of every fax you send. You can enter up to 32 characters. The first 16 characters will also be used as your Personal ID, which may appear on the displays or reports of other fax machines you are communicating with

Setting the TSI/CSI and Sender ID ecblank.gif ecblank.gif dot.gif ecblank.gif1 Press Menu/Exit to enter the menu.
2 Input speed access number 02. 3 Input up to 20 numbers and characters (0-9/Hyphen/ Space/+), press Enter. 4 Press Menu/Exit.
Not finding what you are looking for?

75 views

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

k24674

Level 3 Expert

8093 Answers

Brad Brown

Level 3 Expert

19187 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...