Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-08-2016, 07:10 AM
Rhudi's Avatar
Rhudi Rhudi is offline
Registered User
 
Join Date: Jul 2013
Location: Greenville, SC
Posts: 80
Detect if loggin is enabled?

I have a script that currently uses:
Code:
crt.Session.Log False
...
crt.Session.LogUsingSessionOptions
What I need to do is detect if logging was already enabled. So, I'll add code like this:
Code:
If <detect session logging is true> then bLoggingEnabled = True

If bLoggingEnabled Then crt.Session.Log False
...
If bLoggingEnabled Then crt.Session.LogUsingSessionOptions
The idea is, if the session is set for logging, I need to toggle. If it isn't, then toggling not needed. :P
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 10:32 PM.