User Tools

Site Tools


begin_end_sequence

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
begin_end_sequence [2018/03/30 12:16] wolfgangriedmannbegin_end_sequence [2018/03/30 12:22] wolfgangriedmann
Line 20: Line 20:
 When you execute it in X#, it does not shows any runtime error. When you execute it in X#, it does not shows any runtime error.
 This could lead to not see runtime errors in your migrated VO application. This could lead to not see runtime errors in your migrated VO application.
 +Until the X# development team is able to add some enhancements in their own runtime, you should better use the .NET ''try - catch'' statements, and if you need to remain source compatible between VO and X#, you can use code like this:
 +<code>#ifdef __XSHARP__
 +  try
 +#else
 +  begin sequence
 +#endif  
 +uVal1 := "Hi"
 +uVal2 := 2
 +uVal3 := uVal1 + uVal2
 +#ifdef __XSHARP__
 +  catch oEx as Exception
 +  ErrorBox{ nil, oEx:Message }:Show()
 +  end try
 +#else
 +  end sequence
 +#endif</code>
  
begin_end_sequence.txt · Last modified: 2019/08/29 17:57 by wolfgangriedmann