I am trying to update a listbox in the current webbpage using the following code -:
For intCounter as Integer = 0 to App.SessionCount - 1
app.SessionAtIndex(intCounter).telemetry.ListBox1.deleteallrows
for i as integer = 0 to list.Ubound
app.SessionAtIndex(intCounter).telemetry.button1.caption=list(i)
next
next
A. is there a way to know which of the sessions is my current session
B. it does not seem to update the listbox?
Keep it simple. This will list all current sessions into a listbox and fetch your session :
For i As Integer = 0 To App.SessionCount-1
ListBox1.Addrow(App.SessionAtIndex(i).Identifier)
if App.SessionAtIndex(i).Identifier = Session.Identifier then
//do something
end if
Next
app.sessionatindex.identifier returns some sort of GUID
session.identifider (documents say it returns a string, but assigning it to a string throws a missmatch error)
Looks like a bug![/quote]
I don’t know what you are doing. The code I posted works perfectly and uses strings.