Test Version of App and live Version

marcel

Active Member
Licensed User
Longtime User
Hi,

I would like to have a live version of my app and a test version. Would this possible in one compile and change setting with compiler directives?
 
Last edited:

IanMc

Well-Known Member
Licensed User
Longtime User
You can do it in a simpler way, not compiler directives but in your main process globals you can have:

Dim isTest as Boolean = True


Then throughout your app you can be doing:

If Main.isTest = True then

Do testy type things Here

End If

Then when you want to compile the 'non test' version you change isTest to False
 
Upvote 0

marcel

Active Member
Licensed User
Longtime User
You can do it in a simpler way, not compiler directives but in your main process globals you can have:

Dim isTest as Boolean = True


Then throughout your app you can be doing:

If Main.isTest = True then

Do testy type things Here

End If

Then when you want to compile the 'non test' version you change isTest to False

Thanks, i will do it this way.
 
Upvote 0
Top