#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: 6418
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 43 times
Been thanked: 2 times
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
https://www.facebook.com/groups/modharbour.club
********************************************************************
Post Reply