Hi,
I met a problem. The code described as following.
Dim ButtonList As New List(Of String) From { _
"/dom//frameset/frame[@id='tabs']/body//div[@id='Home']", _
"/dom//frameset/frame[@id='tabs']/body//div[@id='Product']", _
"/dom//frameset/frame[@id='tabs']/body//div[@id='Support']"}
When I build it and the error description is: End of statement expected. (BC30205)
I don't know what's wrong with it.
Thank you.
End of statement expected when define a buttonList as List
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: End of statement expected when define a buttonList as List
Hello shellyhu,
Unfortunately, we are not able to reproduce this issue. The code works perfectly fine:
Further information regarding this issue can be found here: http://msdn.microsoft.com/en-us/library/8dy0ah20.aspx
Regards,
Robert
Unfortunately, we are not able to reproduce this issue. The code works perfectly fine:
Code: Select all
Module Module1
Sub Main()
Dim ButtonList As New List(Of String) From {
"/dom//frameset/frame[@id='tabs']/body//div[@id='Home']",
"/dom//frameset/frame[@id='tabs']/body//div[@id='Product']",
"/dom//frameset/frame[@id='tabs']/body//div[@id='Support']"
}
End Sub
End Module
Regards,
Robert
Re: End of statement expected when define a buttonList as List
Hi Robert
Thank you very much.
I copy your code in my Ranorex (5.0.2), but the same error occurs.
Do you think it is environment problem ?
Shelly
Thank you very much.
I copy your code in my Ranorex (5.0.2), but the same error occurs.
Do you think it is environment problem ?
Shelly
Re: End of statement expected when define a buttonList as List
Hi,
I would suggest you to try to update your Ranorex (5.0.2?) with the latest Ranorex 5.2. The code compiles fine with latest Ranorex.
I would suggest you to try to update your Ranorex (5.0.2?) with the latest Ranorex 5.2. The code compiles fine with latest Ranorex.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: End of statement expected when define a buttonList as List
Hi Odklizec
I upgrade Ranorex to 5.2, but the same error still exists : End of statement expected.
I upgrade Ranorex to 5.2, but the same error still exists : End of statement expected.
Re: End of statement expected when define a buttonList as List
Could you try to create a new solution with this piece of code? Do you get the same result?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: End of statement expected when define a buttonList as List
Hi Odklizec,
I try this code in a new module, it is still existing the same error when build it.
But I try it on another computer, the code can be built successfully. So I am supposed that it is the environment problem, I will check what's the difference between them.
Thank you for your help.
Shelly
I try this code in a new module, it is still existing the same error when build it.
But I try it on another computer, the code can be built successfully. So I am supposed that it is the environment problem, I will check what's the difference between them.
Thank you for your help.
Shelly