Wahooney
01-06-2005, 01:02 PM
I'm busy with a script that uses the Internet Explorer activeX object and I need help with the beforeNavigate2 event. I need to check if the URL meets certain criteria before I can allow it through, I know the way forward involves setting the &Cancel variable to false, but can someone (BOBO!) please tell me how to do that?
Right now my code for the event looks like this:
on ax beforeNavigate2 pDisp URL Flags TargetFrameName PostData Headers &Cancel do
(
if (<URL CONDITION>) then
Cancel = false
)
But it gives me this error:
>> MAXScript Rollout Handler Exception: -- Runtime error: Indirect assignment requires an '&' reference value, got: false <<
Please help me... (BOBO!)
Right now my code for the event looks like this:
on ax beforeNavigate2 pDisp URL Flags TargetFrameName PostData Headers &Cancel do
(
if (<URL CONDITION>) then
Cancel = false
)
But it gives me this error:
>> MAXScript Rollout Handler Exception: -- Runtime error: Indirect assignment requires an '&' reference value, got: false <<
Please help me... (BOBO!)
