Advertisement
Guest User

salam

a guest
Oct 25th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. afisare.prg
  2. close all
  3. use elevi
  4. clear
  5. ?"Introduceti operatia dorita"
  6. ?"1-introducerea a n inregistrari"
  7. ?"2- afisarea inregistrarilor elevilor clasei date"
  8. input to op
  9. if(op==1)
  10. do populare
  11. endif
  12. if(op==2)
  13. input "Dati numarul clasei: " to vclasa
  14. select * from elevi where(clasa=vclasa)
  15. endif
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. populare.prg
  23. SET PATH TO "E:\\12C"
  24. CLEAR
  25. SET TALK OFF
  26. USE elevi
  27. INPUT "Dati numar inregistrari: " TO n
  28. FOR i=1 TO n
  29.     vnume = ""
  30.     vclasa=0
  31.     vmatricol=0
  32.     vadresa= ""
  33.     ACCEPT "NUME = " TO vnume
  34.     INPUT "CLASA = " TO vclasa
  35.     INPUT "MATRICOL = " TO vmatricol
  36.     ACCEPT "ADRESA = " to vadresa
  37.     APPEND BLANK
  38.     replace nume WITH vnume, clasa WITH vclasa, matricol WITH vmatricol, adresa WITH vadresa,
  39. ENDFOR
  40. use
  41.  
  42.  
  43. programe.prg
  44. create table(nume C(30), clasa N(3), matricol N(5), adresa C(50))
  45. use elevi
  46. browse
  47. use
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement