473,396 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how do u recognize space on textbox

19
help! how do u recognize a space on the textbox?
Mar 21 '08 #1
4 1928
mafaisal
142 100+
Hello

Use Instr Function

Faisal

help! how do u recognize a space on the textbox?
Mar 21 '08 #2
obkfixx
19
Hello

Use Instr Function

Faisal
Ooooooooh! thanks. but it didnt help..... i need to find out if the input of the textbox are all white spaces.. or spaces.... cud u write me a code for this?
Mar 21 '08 #3
QVeen72
1,445 Expert 1GB
Hi,

Check This :

Expand|Select|Wrap|Line Numbers
  1. If Text1.Text <> "" And Trim(Text1.Text) = "" Then
  2.    MsgBox "All Blank Spaces"
  3. End If
  4.  
  5. OR
  6.  
  7. If InStr(Text1.Text ," ") > 0 And Trim(Text1.Text ) = "" Then
  8.    MsgBox "All Blank Spaces"
  9. End If
  10.  
  11.  
REgards
Veena
Mar 22 '08 #4
obkfixx
19
Hi,

Check This :

Expand|Select|Wrap|Line Numbers
  1. If Text1.Text <> "" And Trim(Text1.Text) = "" Then
  2.    MsgBox "All Blank Spaces"
  3. End If
  4.  
  5. OR
  6.  
  7. If InStr(Text1.Text ," ") > 0 And Trim(Text1.Text ) = "" Then
  8.    MsgBox "All Blank Spaces"
  9. End If
  10.  
  11.  
REgards
Veena

Thanks iT helped a lot......

regArds! OBKFixx
Mar 22 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Kalessin | last post by:
I'm using PHP's XML parser to validate user-entered XHTML fragments (I wrap them in a top-level element and send them through the parser). It works a treat, except for handling entities: — --...
11
by: PC Datasheet | last post by:
How do I get the Len function to count a space at the end of a string? For example, if I enter AB(space), how do I get Len to return 3 instead of 2? Thanks, Steve
1
by: Amar | last post by:
I have a web form with several fields. Depending on user selection in one combo box, i populate a text box and a check box in one line. For example if the user selects 2 years, then i show the...
1
by: Roy | last post by:
Hey All, Kind of a series of anomalies here with one root source, I believe. I have an editable, paging datagrid. 1.When one clicks "edit" textboxes open up on row x, HOWEVER, if one clicks...
3
by: Husam | last post by:
Hi EveryBody: I made project by Vb.Net which consist the following items: 1\ Textbox 2\Button 3\Listbox When you write any thing in the textbox and press the button any text written in...
1
by: Krish | last post by:
Hi, I am using table control to create table/cell & 2 text box & one image button during runtime. Onclick event of image button i would like to validate if there is any value in either of text...
4
by: trichert | last post by:
Ok , developing a .aspx page with Visual Web Studio (the full page is at the bottom). Basically its a page that displays all my computers and the current logged on user pulling data from a live...
4
by: *.dpG | last post by:
Hello I have problem with this... In textBox I have some words with space between for example asdf fhhhh jjjjjkkkkk oooooo and space is not same between all word. I try to have only...
0
by: Andrew Han | last post by:
I have a simple textbox where a user can enter a numeric value. The RangeValidator works perfectly well to determine if the value is a number of whatever type I specify AND to determine if the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.