Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 452
  • Last Modified:

Help with a delphi component

Hello experts.
plese help me. I am new in delphi

I have a component.I need to extract a value from it.
In component instruction are written :

 Note, that actual pagerank value is contained only in low byte, i.e. you should make Rank and 255 to get real Pagerank value.

in component this option came as integer; and it gives a incorret result

please help me : how i can do this :
 you should make Rank and 255 to get real Pagerank value.

Thansk..
0
helyonprime96
Asked:
helyonprime96
  • 4
  • 3
1 Solution
 
jimyXCommented:
What is the component name?
May be they mean this:
procedure TForm1.Button1Click(Sender: TObject);
begin
  showmessage(inttostr(x and 255)); // x is your byte
end;

Open in new window

0
 
helyonprime96Author Commented:
yes, i tried this but first value is -255, and second is correct.
i need only secind.
0
 
helyonprime96Author Commented:
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
jimyXCommented:
I do not see a need to that!
Have you checked the demo?
0
 
jimyXCommented:
But it's true, reading "PageRank.Rank" will get you incorrect number in comparison to the actual rank that you should get, and as the component read-me suggested use "PageRank.Rank and 255" to get the actual rank as it appears in google page.
After you ensure successfully connecting, you can use this:
showmessage(inttostr(PageRank.Rank and 255));

Open in new window

For example reading EE rank will get 262 so to get the actual rank you have to make it:
262 and 255 which equals to 6.
0
 
helyonprime96Author Commented:
thanks. solution was to set the non-blocking mode  = false;
0
 
helyonprime96Author Commented:
thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now