I need a little help with my user code

Experiences, small talk, and other automation gossip.
kilmey
Posts: 1
Joined: Mon Sep 20, 2021 1:41 pm

I need a little help with my user code

Post by kilmey » Mon Sep 20, 2021 1:51 pm

Hi folks, I need a little help, I think I did something wrong, because I can't understand this error code, there is a "; expected" in the middle of my user code.
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: I need a little help with my user code

Post by odklizec » Mon Sep 20, 2021 2:24 pm

Hi,

In my opinion, you are mixing a VB.Net and C# code ;) The code should look like this:

Code: Select all

IO.StreamWriter file= new IO.StreamWriter("c:\path\to\file.txt",  True);
Pavel Kudrys
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