Board index » delphi » Help

Help

Add a boolean

if length(studentcode) =4 then error;

procedure error;
writeln('Student Code cannont be 4 numbers!!');
end;

Zolander <wan...@pl.jaring.my> wrote in article
<01bd3211$83a7ffa0$4a2dbcca@pentium-ii>...

Quote
> How can I make the program not to accept 4 digit number in the student
code
> column?? How can I make the program not to accept numbers in student name
> column?

 

Re:Help


If you are interesting I have edit UNIT that can du that you have to change
it a little.
It have RealEdit, IntEdit, StringEdit in that unit you have to add
OnlyLetersEdit (Or something like that)
--
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Regards to You all from

Igor Colovic, Belgrade, Yugoslavia, Europe

ci...@EUnet.yu

Zolander <wan...@pl.jaring.my> wrote in article
<01bd321c$4d3f2960$f5e68ea1@pentium-ii>...

Quote
> How can i make the program only accept 4 digit numbers in the student
code
> column? how can i make the program only accept character and no numbers
in
> the student name column? how can i make the program can accept 16 numbers
> like 111-112-222 in the student ic column??

Re:Help


JRS:  In article <01bd321c$4d3f2960$f5e68ea1@pentium-ii> of Thu, 5 Feb
1998 09:56:08 in comp.lang.pascal.borland, Zolander

Quote
<wan...@pl.jaring.my> wrote:
>X-Newsreader: Microsoft Internet News 4.70.1155
>How can i make the program only accept 4 digit numbers in the student code
>column? how can i make the program only accept character and no numbers in
>the student name column? how can i make the program can accept 16 numbers
>like 111-112-222 in the student ic column??

>begin 600 insert.pas
>M4%)/1U)!32!);G-E<G0[#0I[)$T@-3 S-2PP+#!]#0I54T53($-25"Q$3U,[
>M#0H-"E1Y<&4-"B @(%)E8U-T<G5C(#T@4F5C;W)D#0H@(" @(" @(" @(" @
> ...

Please see what is being said about posting in this fashion in the
"Flipping text" thread in this group.

--
John Stockton, Surrey, UK.    j...@merlyn.demon.co.uk    Turnpike v1.12    MIME.
  Web <URL: http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
  Correct 4-line sig separator is as above, a line comprising "-- " (SoRFC1036)
  Don't Mail News to me.      Before a reply, quote with ">" / "> " (SoRFC1036)

Other Threads