GLOBALS.DEF 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. DEFINITION MODULE Globals;
  2. (*
  3. Copyright (C) 1988,1989 Jensen & Partners International
  4. *)
  5. IMPORT Window, Btree;
  6. CONST
  7. ClientFileName = "Clients.DAT";
  8. ItemsFileName = "Items.DAT";
  9. TYPE
  10. CharSet = SET OF CHAR;
  11. FileKey = ARRAY[0..9] OF CHAR;
  12. VAR
  13. TaxRate : LONGREAL; (* state tax rate on sales *)
  14. DisplayFore, DisplayBack, (* field names *)
  15. DataFore, DataBack, (* field information *)
  16. DisplayBorder, (* window border *)
  17. PromptFore, PromptBack (* "system" prompts *)
  18. : Window.Color;
  19. ClientFile, ItemFile : Btree.FHandle;
  20. ClientData, ItemData, ClientIndex,
  21. NameIndex, ItemIndex : Btree.IHandle;
  22. oldWin,
  23. TitleWin, DisplayWin : Window.WinType;
  24. StoreName : ARRAY[0..60] OF CHAR;
  25. PROCEDURE Beep();
  26. (** Sound a tone at the user **)
  27. PROCEDURE WriteAt( row, col : CARDINAL; txt : ARRAY OF CHAR);
  28. (** Write a string to the current window at the given position. **)
  29. PROCEDURE GetMenu( Prompt : ARRAY OF CHAR; OKChars : CharSet;
  30. VAR ch : CHAR);
  31. (** Put up a prompt and accept one of the "ok" characters **)
  32. PROCEDURE Compare( key1, key2 : ADDRESS ) : Btree.CmpRes;
  33. (** compare two strings - used for Btree file insertion **)
  34. PROCEDURE UpdateTitle( All : BOOLEAN );
  35. (** Update the date and time block **)
  36. END Globals.