|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: |
procedure TCoPDBSearch.DoShow;
var
Sheet_name : string;
i, r, c,x,y ,last_column, last_row :integer;
sheet: variant;
Iedt: IaxpEdit;
frmSearch: TfrmSearch;
begin
frmSearch := TfrmSearch.CreateEx(Self, PDBAddinVer);
try
for i:= 1 to HostApp.ActiveWorkbook.WorkSheets.Count do
begin
Sheet_name := Hostapp.ActiveWorkbook.WorkSheets[i].Name;
Sheet := hostapp.Worksheets.Item[Sheet_name];
Sheet.Activate;
Sheet.Cells.SpecialCells(xlCellTypeLastCell,EmptyParam).Activate;
Last_column := hostapp.ActiveCell.Column;
Last_row := hostapp.ActiveCell.Row;
r := 0;
repeat
inc(r);
c := 0;
repeat
inc(c);
IEdt := FindControl(EdtSearchTag, axpEdit) as IaxpEdit;
if pos(iedt.Text,hostapp.Cells.Item[r,c]) > 0
then
// add item to a memo for export
frmSearch.mmo1.Lines.Add(Trim(hostapp.Cells.Item[r,c].Value));
until c = Last_column;
until r = Last_row;
With frmSearch.mmo1 do
for x := Lines.Count-1 Downto 0 Do
for y := Lines.Count-1 Downto 0 Do
if (x <> y) Then If Uppercase(Trim(Lines[x])) = Uppercase(Trim(Lines[y])) Then
begin
Lines.Delete(x);
continue; // it is necessary to break the inner loop once the line is deleted
end;
end;
frmSearch.stat1.Panels[0].Text := PDBSW;
frmSearch.edtPath.Text := GetShortPath(GetModuleName(hInstance),15);
frmSearch.stat1.Panels[2].Text := IntToStr(frmSearch.mmo1.Lines.count)+' item(s) found';
frmSearch.ShowModal;
finally
frmSearch.Free;
end;
end;
|
Advertisement
| Hall of Fame |