Question
Calling MM_showHideLayers from VBScript
I am trying to call the MM_ShowhideLayers function from a
VBScript that is evaluating a database and then showing and hiding
regions bases on the a dynamic value. I am using #Setting1,
#Setting2, etc. in my linked CSS file. Since I am not familiar with
Javascripting, I was trying to have VB Script that is looping
through all of the corrisponding settings in the file and then
setting per values. The M_ShowhideLayers function evaluates the
args passed. VB is having issues with this when trying to pass the
values. Can someone provide some help. There is probably an easy
way to do from vbscript, but I am still learning. :)
Here is the sample VB code:
While NOT rec_reservedbooths.EOF
If rec_reservedbooths.status = "R" Then
Call MM_showHideLayers("Booth" & rec_reservedbooths.Fields.Item("boothid").Value,"","show")
Else
Call MM_showHideLayers("Booth" & rec_reservedbooths.Fields.Item("boothid").Value,"","hide")
End If
rec_reservedbooths.MoveNext()
WEnd
Thanks,
David
Here is the sample VB code:
While NOT rec_reservedbooths.EOF
If rec_reservedbooths.status = "R" Then
Call MM_showHideLayers("Booth" & rec_reservedbooths.Fields.Item("boothid").Value,"","show")
Else
Call MM_showHideLayers("Booth" & rec_reservedbooths.Fields.Item("boothid").Value,"","hide")
End If
rec_reservedbooths.MoveNext()
WEnd
Thanks,
David
