Help with a delphi component

Posted on 2011-03-05
Medium Priority
Last Modified: 2012-05-11
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.

Question by:helyonprime96
  • 4
  • 3
LVL 24

Expert Comment

ID: 35043291
What is the component name?
May be they mean this:
procedure TForm1.Button1Click(Sender: TObject);
  showmessage(inttostr(x and 255)); // x is your byte

Open in new window


Author Comment

ID: 35043323
yes, i tried this but first value is -255, and second is correct.
i need only secind.
7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

LVL 24

Expert Comment

ID: 35043413
I do not see a need to that!
Have you checked the demo?
LVL 24

Accepted Solution

jimyX earned 2000 total points
ID: 35043487
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.

Author Comment

ID: 35043504
thanks. solution was to set the non-blocking mode  = false;

Author Closing Comment

ID: 35043506

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article describes and provides a custom-made tool I wrote to give businesses a means of identifying commercial music content, without having to expend too much effort. Business recordings are easily identified from possibly illegal music files …
Six Sigma Control Plans
Starting up a Project

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question