I have a little issue with checking if a variable is empty...

If I use the "get" command and just press "Enter" then the variable is not blank??? How can I get the code below to give the same result?

 Code:
break on
$= SetOption('Explicit','ON')
$= SetOption('WrapAtEOL','ON')
$= SetOption('NoVarsInStrings','ON')
$= SetTitle('Info...')

Dim $myvar
$myvar = ''

?
? 'Myvar: |' + $myvar + '|'
?
If $myvar = ''
  ? 'Empty variable'
Else
  ? 'Not so empty...'
Endif
?
? 'Length of myvar: ' + len($myvar)
?
?
? 'Enter a value for myvar: '
flushkb
get $myvar
?
? 'Myvar: |' + $myvar + '|'
?
If $myvar = ''
  ? 'Empty variable'
Else
  ? 'Not so empty...'
Endif
?
? 'Length of myvar: ' + len($myvar)
?
Get $


Regards,
Andy
_________________________
Regards,
Andy.


--Just shoot me, please.--