Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
69 views
in Technique[技术] by (71.8m points)

How can I search for Delphi documentation?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can navigate to the front page of the Embarcadero documentation and search from there. The link is: http://docwiki.embarcadero.com/RADStudio/en/Main_Page

Note that no version is included in the link. If you navigate to that link then the site will re-direct you to a version specific URL for the latest release. In this case, as I write this today, you would be re-directed to: http://docwiki.embarcadero.com/RADStudio/XE5/en/Main_Page

If you wish to search documentation for a specific version, then you can supply that version in the URL.

You can type the search term into the search box at the top-left of the page, as shown in this screen capture:

enter image description here

However, the results are disappointing. Here they are:

enter image description here

Gah! Where's the documentation for the SetLength function?

Better results are obtained if you use the Libraries section of the documentation as your portal. That is found here: http://docwiki.embarcadero.com/Libraries/en/Main_Page

Navigate there are search for SetLength and the results are:

enter image description here

And this is exactly what we are looking for.


Sometimes I still start with a web search because in my experience a good web search engine can produce more relevant results. So, using Google as an example, you might try these search terms:

  • site:docwiki.embarcadero.com/Libraries/XE5 SetLength
  • site:docwiki.embarcadero.com/Libraries SetLength
  • site:docwiki.embarcadero.com SetLength

As a short cut you can usually get away with typing your search term and adding docwiki and delphi. That's usually enough to persuade the search engine to only return Embarcadero hits. So you might search for: docwiki delphi SetLength and get this result:

enter image description here

One final point. If you find yourself writing an answer here on Stack Overflow, and want to link to the documentation, you can also use the trick of removing the version from the URL. Such a URL gets re-directed to the latest version. So, continuing with SetLength, you might replace:

http://docwiki.embarcadero.com/Libraries/XE5/en/System.SetLength

with

http://docwiki.embarcadero.com/Libraries/en/System.SetLength

Using this approach could make your answer more future-proof.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...