#DEFINE for testing in parallel FIVEWIN - modharbour

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

#DEFINE for testing in parallel FIVEWIN - modharbour

Post by Otto »

I use #define MODHARBOUR to create an offline version for development and testing in parallel

sample

#ifdef MODHARBOUR
use ( hb_GetEnv( "PRGPATH" ) + "\data\tagging.DBF" ) new
#else
use ( ".\data\tagging.DBF" ) new
#endif


#ifdef MODHARBOUR
TEMPLATE
ENDTEXT
#else
xbrowse()
#endif
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Post Reply