Forum > General

[Solved] Throw error if string is empty

<< < (2/2)

No he comes from null instead of nil. Read the original post. Anyway, good enough code for a T-shirt with a red cross allover it.  8-)

I tried it one more time and it worked:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---try  WriteLn(Length(BpmPtr^) / Length(BpmPtr^));except  on E: Exception do  begin    raise Exception.Create('bpm tag not found. ' + #13#10 + E.Message);    GetAllTagsByPathUnset;    Halt(-1);  end;end;
Thanks for the replies.


[0] Message Index

[*] Previous page

Go to full version