Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. set talk off
  2. clear
  3. use student in 1 order tag cods alias st
  4. use curs in 2 order tag codc alias cs
  5. use note in 3 order tag codc alias nt
  6. use profesor in 4 order tag codp alias pr
  7. select cs
  8. set relation to codp into pr
  9. select nt
  10.  
  11. set relation to cods into st, codc into cs
  12.  
  13. r='D'
  14. do while r$'DdYy'
  15. clear
  16. Vcodc=accept('Cod curs')
  17. Vcodc=Upper(Vcodc)
  18. seek Vcodc
  19.  
  20. if eof()
  21. msgbox('nu sunt note la cursul '+Vcodc , 'curs gresit' , 0)
  22. * ? 'Cursul +Vcodc+ ' nu exista''
  23. wait 'Continuati D/N ' to r
  24. LOOP
  25. endif
  26.  
  27. do while nt->codc=Vcodc
  28. ? st->cods, st->nume, cs->codc, cs->titlu, nt->nota, pr->Nume
  29. skip
  30. enddo
  31. wait 'continuati D/N' to r
  32. enddo
  33. clear all
  34. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement