home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / VFP50 / SAMPLES / SERVERS / FOXISAPI / MAIN.PRG < prev    next >
Encoding:
Text File  |  1996-08-01  |  395 b   |  23 lines

  1. * This is the main program for the FoxIsapi sample
  2.  
  3. * The first few lines allow this sample to be run as a normal APP
  4. * either from within VFP or as a standalone EXE
  5. Clear
  6. Clear ALL
  7. SET CLASSLIB TO isapi
  8. SET SAFETY OFF
  9. PUBLIC ox
  10. ox=CREATEOBJECT('employee')
  11.  
  12. IF VERSION(2) = 0    && runtime
  13.     ox.Visible = .T.
  14.     READ EVENTS
  15.     RETURN
  16. ELSE
  17.     ox.Show    && must be design time
  18. ENDIF
  19.  
  20.  
  21.  
  22.  
  23.