473,407 Members | 2,359 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,407 software developers and data experts.

Give two attempts at inputting data

I am doing a programe where someone has to put in 1 for being a new customer and 2 for being established. if wrong data is put in then message is try again but only twice no loop.
My problem is while i know this is if/else i dont know how to write if data is wrong try again (so last if/else.
also is var Customers, customers=new, established OR var new customers, var established customers?

would love help

s
Feb 12 '08 #1
4 1099
im sorry this is only easy stuff for you but it would help me. if your doing programe for client base 1 and 2 and they have to enter that data and if they get it wrong you have say to try again but without a loop they have only 2 attempts. while i know this is if/else im not sure about the last bit for try again?
also var clientBase, clientbase=new, established OR var new var established

would love some help
thanks
sara
Feb 12 '08 #2
r035198x
13,262 8TB
im sorry this is only easy stuff for you but it would help me. if your doing programe for client base 1 and 2 and they have to enter that data and if they get it wrong you have say to try again but without a loop they have only 2 attempts. while i know this is if/else im not sure about the last bit for try again?
also var clientBase, clientbase=new, established OR var new var established

would love some help
thanks
sara
So, what have you done so far?
P.S Next time make sure you are posting in the correct forum. Java != Javascript
Feb 12 '08 #3
acoder
16,027 Expert Mod 8TB
Threads merged and renamed.
Feb 12 '08 #4
hirak1984
316 100+
I am doing a programe where someone has to put in 1 for being a new customer and 2 for being established. if wrong data is put in then message is try again but only twice no loop.
My problem is while i know this is if/else i dont know how to write if data is wrong try again (so last if/else.
also is var Customers, customers=new, established OR var new customers, var established customers?

would love help

s
what r u using? java or javascript? please post the code u tried so far
Feb 12 '08 #5

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

Similar topics

4
by: beta2000 | last post by:
I want to try Refresh() again if the first Refresh() fails. Code: try { try { Refresh(); // ... first attempt... } catch(...) {
1
by: C G | last post by:
Dear All, I have a text file with data like: 1 2 3 4 5 6 7 8 9 i.e. so I have three columns of numbers. I wish to put this data into a table. However, I do not want it to take up three...
0
by: jasonwong | last post by:
Hi, I was wondering if anyone knows of a way to utilize the Runtime Parser to parse a text box filled with user input code. The user will be inputting HTML and data markup into a textbox that...
4
by: snow.carriers | last post by:
http://www.rafb.net/paste/results/fTQgRW16.html Here's my program so far. This is what I'm trying to do: http://contest-cemc.uwaterloo.ca/ccc/2005/senior/phone.pdf So far it works fine. The only...
1
by: yasin | last post by:
is it possible inputting characters from keyboard by codes.or can we use assemly interrupts in asp.net to press keyboard buttons by code.
5
by: Chris | last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL. Meeting info and Meeting docs reside on 2 related tables in the db. Users may want to upload anywhere from 1 to 10 or...
1
by: Ramper | last post by:
Have a .txt document as: String int int int int int int int
5
by: tim123 | last post by:
Hey. I'm having some issues reading in data from a tab delimited text file. I only want to input numbers, and ideally I'd like it to be able to cope with a line or 2 of text at the top in case...
1
by: tjerhoff | last post by:
Hello, I am pretty new to Access and have a question. I am setting up a database that will track production info. All I want to do is have a FORM that will allow me to input several data fields...
16
by: HypeBeast McStreetwear | last post by:
Hey Guys I have to make a program where it accepts/denies applications into a club. The program should read in information about applicants (None was given so I believe I have to make up some...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.