Profil1
2003-07-16 14:11:27 UTC
See that VarIsEmpty and VarIsNull are both false for your Found results:
$0016EEEC and $00000000 also.
Try to use VarIsClear(Found) function.
Mario
EmptyParam,
$0016EEEC and $00000000 also.
Try to use VarIsClear(Found) function.
Mario
Hi all,
I want to search text in all cells of a Excel sheet.
var
Found, Searchtext : OleVariant;
begin
Found := WorkSheet.Range['A1', 'F99'].Find(
SearchText,I want to search text in all cells of a Excel sheet.
var
Found, Searchtext : OleVariant;
begin
Found := WorkSheet.Range['A1', 'F99'].Find(
EmptyParam,
Lookin :=
xlValues,
Lookat :=
xlPart);
if not VarIsEmpty(Found) and not VarIsNull(Found) then
DoSometing;
The debugger shows me Found = $0016EEEC (if text is really found)
and Found = $00000000 (if text isn't found).
The problem for me is that DoSometing is called always. Although
searchtextxlValues,
Lookat :=
xlPart);
if not VarIsEmpty(Found) and not VarIsNull(Found) then
DoSometing;
The debugger shows me Found = $0016EEEC (if text is really found)
and Found = $00000000 (if text isn't found).
The problem for me is that DoSometing is called always. Although
is not found in that sheet.
How can I solve this ?
So long,
Thomas
How can I solve this ?
So long,
Thomas