Solved

Help with a delphi component

Posted on 2011-03-05
7
430 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
  • 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
 

Author Comment

by:helyonprime96
ID: 35043325
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now