Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Help with a delphi component

Posted on 2011-03-05
7
Medium Priority
?
450 Views
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.

Thansk..
0
Comment
Question by:helyonprime96
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 35043291
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
 

Author Comment

by:helyonprime96
ID: 35043323
yes, i tried this but first value is -255, and second is correct.
i need only secind.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 24

Expert Comment

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

Accepted Solution

by:
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.
0
 

Author Comment

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

Author Closing Comment

by:helyonprime96
ID: 35043506
thanks
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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?
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Simple Linear Regression
Suggested Courses

715 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