•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 423,120 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,133 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 932 | Replies: 2
![]() |
I dont know if Im far off with this, The user enters their name and I want them to only enter in a string so if they enter in a number Id like an error message, any ideas?
program Word;
uses crt;
var
letter: string;
begin
clrscr;
Repeat
writeln('What is your name? ');
readln(letter);
if (letter >=UPCASE('a')) AND (letter <=UPCASE('z')) then
begin
writeln('Correct Answer ');
end
else
begin
writeln('Word needs to be entered');
end;
Until (letter >=UPCASE('a')) AND (letter <=UPCASE('z'));
{-------------------Printing Results------------------}
writeln('The name is ', letter);
readln;
end.![]() |
•
•
•
•
•
•
•
•
DaniWeb Pascal and Delphi Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Error msg ' Operation Aborted' when accessing some websites. (Web Browsers)
- Datagrid - no value at index ### error when scroll and sort (VB.NET)
- problems with Windows 2000 professional. "Systemced" error msg (Windows NT / 2000 / XP / 2003)
- Help with a reservation program! GUI Messed XD (Java)
- refresh datagrid causes error if oper scrolled off right side of grid (VB.NET)
- Can u help me with hangman code in vb.net please :( (VB.NET)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Upload a file to a ftp server using delphi
- Next Thread: Need help with Delphi coding.


Linear Mode