Foxpro Basic Commands

  • Change default directory:
    • set default to c:\example
  • Edit a program:
    • modify command program name
  • Run a program:
    • do program name
  • Message box
    • messagebox(“whatever you want to say”)
  • Add ? to a command, for example ?2+2
    • will print result to the console
  • Change Directory
    • cd “c:\example”
  • Escape Key gets you terminates a command, not ctrl-c
  • To do a simple query, complete the following steps:
    • cd directory of interest
    • set exclusive off (so you can share the table with other users)
    • use table name
    • select … (do the query)