Quantcast
Channel: CCNA final exam 2013, Java, PHP, Cshap, html, flash, javascript, Facebook » delphi
Viewing all articles
Browse latest Browse all 23

What is the better way to check for an empty string in Delphi?

$
0
0

A common condition that all programs should do is to check if string are empty or not.

Take the below statements:

(1)

if Length(Str)=0 then
  // do something

(2)

if Str='' then
  // do something

Viewing all articles
Browse latest Browse all 23

Trending Articles