Download
declare procedure showregel int b int c int d int e n.
Skip this Video
Loading SlideShow in 5 Seconds..
declare procedure ShowRegel(int b, int c, int d, int e) PowerPoint Presentation
Download Presentation
declare procedure ShowRegel(int b, int c, int d, int e)

declare procedure ShowRegel(int b, int c, int d, int e)

160 Vues Download Presentation
Télécharger la présentation

declare procedure ShowRegel(int b, int c, int d, int e)

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. declare procedure ShowRegel(int b, int c, int d, int e)

  2. declare procedure ReadOneLine()

  3. Int Teller,XPos,YPos,OrgX,OrgY

  4. String Regel,Naam,Group,HulpStr,Action,Uur,Online

  5. Ypos = 5 ; Yposition to start display

  6. Begin

  7. Dispfile ppepath()+"lc.ans",graph

  8. OrgX = GetX()

  9. OrgY = GetY()

  10. if (exist(ppepath()+"caller.dat")) then

  11. Fopen 1,ppepath()+"caller.dat",o_rd,s_dn

  12. For Teller = 1 To 13

  13. ReadOneLine() ; Read 1 line from the data-file

  14. if (Naam <> "") ShowRegel(7,15,9,7) ; And display it

  15. ypos = ypos + 1 ; Increase YPosition

  16. endfor

  17. Fclose 1

  18. endif

  19. ansipos OrgX,OrgY

  20. color 7

  21. end

  22. PROCEDURE ReadOneLine()

  23. Fget 1,Regel

  24. Action = LEFT(Regel,9)

  25. Regel = RIGHT(Regel,LEN(Regel)-9-1)

  26. Uur = Replace(LEFT(Regel,5),"0","O")

  27. Regel = RIGHT(Regel,LEN(Regel)-5-1)

  28. Group = LEFT(Regel,INSTR(Regel,"|")-1)

  29. Regel = MID(Regel,INSTR(Regel,"|")+1,LEN(Regel)-INSTR(Regel,"|"))

  30. Naam = LEFT(Regel,INSTR(Regel,"|")-1)

  31. Regel = MID(Regel,INSTR(Regel,"|")+1,LEN(Regel)-INSTR(Regel,"|"))

  32. Online = replace(Regel,"0","O")

  33. Endproc

  34. ; Parameter b = Color to Display Hour

  35. ; c = Color To Display Name

  36. ; d = Color To Display Action

  37. ; e = Color To Display Online

  38. PROCEDURE ShowRegel(int b, int c, int d, int e)

  39. ; Display Login Hour

  40. color b

  41. Ansipos 5,YPos

  42. Print Uur

  43. ; Display User Handle

  44. color c

  45. Ansipos 13,YPos

  46. Naam = LEFT(Naam,19)

  47. Print Naam

  48. ; Display Group/Location

  49. Color b

  50. Ansipos 37,YPos