No On Error Resume in C#

Ask general questions here.
marcushe
Posts: 112
Joined: Tue Apr 14, 2009 6:38 am

No On Error Resume in C#

Post by marcushe » Tue Apr 28, 2009 6:45 am

Too bad , that means we must be enclosed by hundries and millions of Try ...Catch.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Tue Apr 28, 2009 10:03 am

You are correct c# does not support on error resume next. This was a decision made by the creators of C# and has nothing to do with Ranorex as the c# that you see in Ranorex is native c# and is not a scripting implementation.

There are many good reasons as to why c# does not support this, and we agree with those reasons. However, if you really need this functionality you do have a couple of options. One option is to use VB.NET as it does support the “on error resume next” construct. Or, if you need to do this in c# then this link should help. Equivalent of on error resume next in C#

Ron Keele
Ranorex Support Team

marcushe
Posts: 112
Joined: Tue Apr 14, 2009 6:38 am

Not good

Post by marcushe » Tue Apr 28, 2009 10:18 am

VB.net gets not well on with pointer , so i 'd like to use c++,c#.
On error resume is like
someone falls down and get on to his/her knee , and continue his/her way. On error resume should be reserved!! Ai..

I knew on error resume is a problem of c# ,not of Ranorex. Thanks