How to detect if in Wizard, or in Director, or in Trio?

ruimac

Member
Is there any command to check if the code is running in the Template Wizard or if it is being executed in Director or if it is in Trio?
 
Ok, found out how to check if the code is being executed in Template Wizard or Director, with:

if SCV_IN_VCP = True then VTW = 1 else VTW = 0

But, how to determine if the code is being executed in Trio?
 
This works:

Code:
Sub InitForm
    if SCV_IN_VCP then
        msgBox "In VCP!"
    elseif InStr(TrioCmd("get_version"), "ERROR") = 0 then
        msgBox "In Trio"
    else
        msgBox "In VTW!"
    end if
End Sub
 
Back
Top