if the gClient of this stack is true then evals to false???
Posted: Thu Mar 08, 2012 3:57 am
Can I get some help here please?
I don't understand why this script always evaluates to false
This is code from ExampleStack.rev
Could it be how we're using the start using this stack?
I don't understand why this script always evaluates to false
This is code from ExampleStack.rev
Code: Select all
global gClient
global gConnection
global gSSLEnable
function InitValentina
-- put true into gClient of this stack -- this code exits this function
-- setting gClient to True
put true into gClient -- YOU NEED MODIFY THIS TO TRUE FOR CLIENT-SERVER mode of examples.
-------------------------------
put false into gConnection
put false into gSSLEnable
-- evaluating gClient of this stack (not just gClient)
if the gClient of this stack is true then -- ==========>>>> this script ALWAYS evaluats to false - even though 3 lines before its set to true
if the gLocalOnly of this stack is true then
put false into Valentina_Example_Launched
answer error "This stack works in local mode only."
close this stack
else
get Valentina_InitClient()
set the mPath of this stack to the short name of this stack &".vdb"
end if
else
get Valentina_Init( 8 * 1024 * 1024 )
end if
get Valentina_DebugLevel("kLogParams")
end InitValentina
Could it be how we're using the start using this stack?
Code: Select all
on openStack
put the filename of this stack into myStackFilePathName
set the itemDelimiter to "/"
put "" into item -1 of myStackFilePathName
put "" into item -1 of myStackFilePathName
put "" into item -2 of myStackFilePathName
put "" into item -1 of myStackFilePathName
put "" into char -1 of myStackFilePathName
put myStackFilePathName into ExampleStack
put "__shared__/ExampleTools.rev" into item -1 of ExampleStack
put "" into char -1 of ExampleStack
start using ExampleStack
end openStack