Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 614 results for
trapping
- Page 1
Error trapping while reading windows XP registry entries
Programming
Software Development
17 Years Ago
by JohnJohnUSA
…=1249756&page=1#"]Registry[/URL] Entries (No error
trapping
).py", line 5, in -toplevel- Name, Data, Type = win32api…
Problem in trapping in TIC TAC TOE
Programming
Software Development
15 Years Ago
by makubexiii
I'm almost finished with this but got stuck in
trapping
it when 1)there is a winner 2) a player …
Insert statement not trapping Username
Programming
Web Development
14 Years Ago
by kegathor
… the site to a new server and unfortunately its not
trapping
the username for me. [CODE] strSQL="INSERT INTO TBLCART…
Error Trapping
Programming
Software Development
14 Years Ago
by BuhRock
Can someone help me with error
trapping
. For instance, if I asked the user to input only a numeric type, 0-9. Then how would I go about creating an error message if the user inputs "hey." I know that I could easily use the Try, Catch statements but I want to learn the other ways.
problems in trapping in my textfield
Programming
Software Development
14 Years Ago
by jemz
hello can you help me please.. i have this
trapping
that will trap the characters..but my problem my code …
trapping
Programming
Software Development
13 Years Ago
by loidz123
im a newbie to java programming and i wanna know how to create a java program that would let a user enter a 6 character ID number(a combination of 3letters and 3numbers)
Re: trapping
Programming
Software Development
13 Years Ago
by masijade
JOptionPane for a "GUI" (Scanner for a "console") program. See the API docs for those classes and google for some tutorials.
Re: trapping
Programming
Software Development
13 Years Ago
by mKorbel
please learn to search on this forum, because last 3pages contains (majority of) same lesson
Re: trapping
Programming
Software Development
13 Years Ago
by loidz123
thank you so much!
trapping
Programming
Software Development
12 Years Ago
by churva_churva
how to trap? for example in my textfield i don't want my textfield to accept double data type only integer is accepted..i don't have any idea how to do it.. can someone here give me a clue...please a sample code.
Re: trapping
Programming
Software Development
12 Years Ago
by debasisdas
You need to write a validation function for that and call the same in the lost focus of the control.
Re: trapping
Programming
Software Development
12 Years Ago
by churva_churva
can you please give an example what ur trying to say please..
Re: trapping
Programming
Software Development
12 Years Ago
by debasisdas
Lets see the code that you are working on.
Re: trapping
Programming
Software Development
12 Years Ago
by churva_churva
General declaration Option Explicit Private sub cmd_calculate_cllick() dim radius as double if IsNumeric(txtR.Text) then radius=val(txtR.text) else MsgBox("invalid input" Exit Sub compute(radius) End if Public sub compute(ByVal radius As double) dim diameter,circumference …
Re: trapping
Programming
Software Development
12 Years Ago
by debasisdas
add this to change event or lost focus of the text box. [CODE]if vaL(txtr.text) > 32767 then msgbox( "out of range") end if;[/CODE]
Re: trapping
Programming
Software Development
12 Years Ago
by churva_churva
[CODE]if (Trim(Like"*[!0-9]*") then [/code] can u explain this to me what this kind of method i dont clearly understand it all i know "Like " is an operator in VB but it use and asteres and parenthesis MsgBox("not valid") end if this method i use do work but...i forgot to trap, if the user will input greater than …
Re: trapping
Programming
Software Development
12 Years Ago
by ChrisPadgham
if you only want an integer [CODE]if isnumeric(txtr.text) then if int(txtr.text)=val(txtr.text) then OK else msgbox "Only integers please" exit sub end if else msgbox "Please enter a number" exit sub end if[/CODE]
Trapping
Programming
Software Development
11 Years Ago
by dearjoy
I have a project in vb.net which i would like to create a program that a textbox will only allow alphabet,space and dots and it is in uppercase only.. no special character and numbers allowed. Thank you and God bless.. Hope to help me..
Re: Trapping
Programming
Software Development
11 Years Ago
by Begginnerdev
You will have to make use of the textChanged event. You will need to keep track of the key pressed also. Create an array filled with all of the characters/keys you want to filter, then check against it with the key pressed. If it passes,add it to the text box.
Re: Trapping
Programming
Software Development
11 Years Ago
by bnitishpai
Private Sub TextBox2_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox2.KeyUp If e.KeyCode < 65 Or e.KeyCode > 90 Then MsgBox("No Numbers please") TextBox2.Clear() Exit Sub End If End Sub This …
Re: Trapping
Programming
Software Development
11 Years Ago
by bnitishpai
This code you can use for conversion of string to uppercase during a lost focus event. Same way, you will find Lowercase, Propercase and other string manupulation functions. Private Sub TextBox1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus TextBox1.Text = StrConv(TextBox1.Text, …
Re: Trapping
Programming
Software Development
11 Years Ago
by G_Waddell
[ascii Table web site](http://www.asciitable.com/) will give you the Ascii key codes for most characters - you can then use the KeyCode example given by bnitishpai above to filter out what you don't want. For example, this code will block them entering the invalid text altogether. Private sub Textbox1_OnKeyPress(byVal sender as object, …
Re: Trapping
Programming
Software Development
11 Years Ago
by brylle
space allowed here. If (Microsoft.VisualBasic.Asc(e.KeyChar) < 65) _ Or (Microsoft.VisualBasic.Asc(e.KeyChar) > 90) _ And (Microsoft.VisualBasic.Asc(e.KeyChar) < 97) _ Or (Microsoft.VisualBasic.Asc(e.KeyChar) > 122) Then 'space accepted If (Microsoft.…
Re: Trapping
Programming
Software Development
11 Years Ago
by ome2012
i think you just have to change the value of CharacterCasing to "Upper" this can be found in your textbox property....
Re: Trapping
Programming
Software Development
11 Years Ago
by ome2012
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Asc(e.KeyChar) < 65 Or Asc(e.KeyChar) > 90 And Asc(e.KeyChar) < 97 Or Asc(e.KeyChar) > 122 Then 'space accepted If Asc(e.KeyChar) <> 32 Then…
Trapping the Tab Key.......
Programming
Software Development
17 Years Ago
by ajaxjinx
Hi, I am making a small software. As a part of the Command Line Interface I am supposed to include the "tab help facility" .Incase the user is typing a command and in between he presses the Tab key, the software should display all the avavilable commands. I am unable to trap the Tab ... And ofcourse the Coding is in C..
Re: Trapping the Tab Key.......
Programming
Software Development
17 Years Ago
by thekashyap
As you need to trap a single key, I don't think you can use getline/s(). Just catch every character typed using getchar/ch() and echo it back using putxx() if it's not the tab char.
Re: Trapping the Tab Key.......
Programming
Software Development
17 Years Ago
by Salem
Well a lot depends on your OS and compiler. Are you allowed to use libraries like ncurses?
Re: Trapping the Tab Key.......
Programming
Software Development
17 Years Ago
by vijayan121
if you are using c++ we can write portable code [code=cplusplus] std::cin >> std::noskipws ; char ch ; std::cin >> ch ; if( ch == '\t' ) /* ... */ ;// tab else /* ... */ ; // something else [/code]
Re: Trapping the Tab Key.......
Programming
Software Development
17 Years Ago
by ajaxjinx
1.I am working on LINUX 2. Using C, not C++ 3I can Download extra lib if the need be.
1
2
3
11
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC