Hello, I´ve a problem with a hyperlink behavior…
I´ve a text member with several hyperlinks to open xls external files, and an attach handler with this code:
on hyperlinkClicked me, whereTo
-- 101
if whereTo="tab_101" then
baOpenFile(the moviePath&"\tabelas\Tab_101_N2.xls","maximised")
end if
-- 102
if whereTo="tab_102" then
baOpenFile(the moviePath&"\tabelas\Tab_102_N2.xls","maximised")
end if
(…)
End
When opening the files by the sequence of the links in the text (tab_101, tab_102... tab_n) it works perfectly.
But if I try to open the 1st file and after open the 3rd , this link doesn’t work, and the 4th link acquires the parameter whereTo=tab_101, opening the wrong file.
On debugging, I conclude it has nothing to do with the use of the buddy api function, is a problem related with the hyperlinks only. If removing the line breaks in the text member, the bug disappears, but unfortunately I´ve to have a hyperlink in each line… ?
Can anyone give me a hand?… I´m kind of lost in this problem
Thanks
I´ve a text member with several hyperlinks to open xls external files, and an attach handler with this code:
on hyperlinkClicked me, whereTo
-- 101
if whereTo="tab_101" then
baOpenFile(the moviePath&"\tabelas\Tab_101_N2.xls","maximised")
end if
-- 102
if whereTo="tab_102" then
baOpenFile(the moviePath&"\tabelas\Tab_102_N2.xls","maximised")
end if
(…)
End
When opening the files by the sequence of the links in the text (tab_101, tab_102... tab_n) it works perfectly.
But if I try to open the 1st file and after open the 3rd , this link doesn’t work, and the 4th link acquires the parameter whereTo=tab_101, opening the wrong file.
On debugging, I conclude it has nothing to do with the use of the buddy api function, is a problem related with the hyperlinks only. If removing the line breaks in the text member, the bug disappears, but unfortunately I´ve to have a hyperlink in each line… ?
Can anyone give me a hand?… I´m kind of lost in this problem
Thanks