TAILIEUCHUNG - About Java and xBaseJ- P3

Tham khảo tài liệu 'about java and xbasej- p3', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 1 - Fundamentals 41 RESUME 942 CASE ELSE ON ERROR GOTO 0 END SELECT 32767 End of module PROGRAM_EXIT I llbe the first to admit that this SELECT statement used to get out of hand. Some programmers refused to use a SELECT so you had an ugly series of nested IF-THEN-ELSE statements. It did however leave the logic flow clean and apparent if you were a competent programmer and it allowed you to handle just about every error you could potentially recover from. RESUME and RETRY allowed us to return program control to any line number or label in the program. Some abused it for certain but the power and grace of this technology is lacking from all OOP error handling today. Everybody wants the clean look that BASIC with old style error handling had so most Java programs have no usable error handling. Quite simply we are going to take fix a few things then add some print functionality. I must stress that this isn at great example but it is a very common design. I have encountered this same design time and time again no matter what language or xBASE library was being used. 1 import . 2 import . 3 import . 4 import . 5 import . 6 7 public class rolliel 8 9 variables used by the class 10 11 private DBF aDB null 12 private CharField classId null 13 private CharField className null 14 private CharField teacherld null 15 private CharField daysMeet null 16 private CharField timeMeet null 17 private NumField credits null 18 private LogicalField UnderGrad null 19 20 private boolean continue_flg true 21 22 23 Main module 24 42 Chapter 1 - Fundamentals 25 public void do_it 26 try 27 28 You must set this unless you want NULL bytes padding out 29 character fields. 30 31 32 fieldFilledWithSpaces true 33 34 open_database use an existing database if possible 35 if continue flg 36 continue flg true 37 create_database if none exists create 38 if continue_flg 39 .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.