Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Pascal Programming Lessons  <--  <--- Return to Home Page
   Networked Database  Pascal Programming Lessons   [2 / 36] RSS
 From   To   Subject   Date/Time 
Message   Joseph Larsen    mark lewis   FPC Oneliners.   June 8, 2016
 7:06 AM *  

ml> ==== Begin "readkey_test.txt"  ====
ml> = pascal_lessons (1:3634/12.73) =======================================
ml>  Msg  : 90 of 113                           Snt Loc
ml>  From : mark lewis                          1:3634/12.73    13 Feb 16 1
ml>  To   : joseph larsen
ml>  Subj : Some code i'm having problems with.
ml> =======================================================================
ml> 
ml> 13 Feb 16 00:50, you wrote to All:
ml> 
ml>  jl> Here's some code. The problem is that I have to press the down arr
ml>  jl> key twice before it executes the "bot_bar" procedure. If anyone co
ml>  jl> help, or take a look at it, i'd appreciate it.
ml> 
ml> some parts are missing for others to really be able to compile and test
ml> 
ml> ==== Begin "readkey_test.pas"  ====
ml> Program readkey_test;
ml> 
ml> Uses crt;
ml> 
ml> Var
ml>   ch1 : char;
ml>   ch2 : char;
ml> 
ml> Procedure show;
ml> Begin
ml>   writeln('      in show');
ml> End;
ml> 
ml> Procedure bot_bar;
ml> Begin
ml>   writeln('    in bot_bar - display show? enter=no');
ml>   ch2:=readkey;
ml>   if ch2=#13 then begin
ml>     writeln('    readkey=enter - exiting bot_bar');
ml>     exit;
ml>   end;
ml>   show;
ml> End;
ml> 
ml> Procedure top_bar;
ml> Begin
ml>   writeln('    in top_bar');
ml> End;
ml> 
ml> 
ml> Begin
ml>   writeln('press uparr, dnarr or enter');
ml>   Repeat
ml>     writeln('in repeat block waiting on readkey');
ml>     ch1:=ReadKey;
ml>     case ch1 of
ml>       #0 : begin
ml>              writeln('readkey=nul - reading next key');
ml>              ch1:=ReadKey;
ml>              case ch1 of
ml>                #72 : begin
ml>                        writeln('  readkey=uparr');
ml>                        top_bar;
ml>                      end;
ml>                #80 : begin
ml>                        writeln('  readkey=dnarr');
ml>                        bot_bar;
ml>                      end;
ml>              end; //case readkey
ml>            end; //begin #0
ml>     end; //case readkey
ml>   until ch1=#13;
ml>   writeln('readkey=enter - exiting program');
ml> end.
ml> ==== End "readkey_test.pas" ====

Ok. I made the changes you suggested. Same problem. It takes 2 press of the
down arrow key to get the bot_bar procedure. :/


ignatius (cia)

--- DayDream BBS/UNIX (Linux) 2.15a
 * Origin: catch22bbs.com >>>  >> > (1:340/800)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Pascal Programming Lessons  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0939 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_7s5d9838a6vgpb6tiitamk5on0, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_7s5d9838a6vgpb6tiitamk5on0, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_7s5d9838a6vgpb6tiitamk5on0, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0