— No Results

    Differences

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

    Link to this comparison view

    cppbuilder:snippets:fastscript:tryandcatch [2019/07/01 09:41] (current)
    administrator created
    Line 1: Line 1:
     +====== Try&​Catch in script ======
     +
     +<sxh cpp>
     +try
     + {
     + var v = int(StrToInt (Value));
     + if ((v > 0) && (v < 60)) 
     + {
     + }
     + else
     + {
     + ErrorText = Value+"​ ist keine gültige KW";
     + Error = true;
     + }
     + }
     +
     + except
     + {
     + Error = true;
     + ErrorText = Value +" ist keine gültige KW";
     + }
     +</​sxh>​
      
    cppbuilder/snippets/fastscript/tryandcatch.txt · Last modified: 2019/07/01 09:41 by administrator