[delphi] Error Progsel

Pagina: 1
Acties:
  • 41 views sinds 30-01-2008

  • Cablekevin
  • Registratie: Maart 2004
  • Laatst online: 18-04 00:15
Hey ik had net van deze site een tut gevonde om een browser te make.
maar ten eerste als ik hem wil compile geeft regels die ik heb getyp.
http://www.cesis.lv/learn/delphi/apc.htm#Heading4
Dat is de tutorial.
6. Click on the URL combo box. Generate an event handler for the OnClick event. Type the following code in the event handler:

if URLComboBox.Text <> `' then
HTML.RequestDoc(URLComboBox.Text);

The RequestDoc method loads the requested document after first checking that the combo box contains text.

7. Now generate an event handler for the OnKeyPress event. Type the following code in the event handler:

if Key = Char(VK_RETURN) then begin
Key := #0;
if URLComboBox.Text = `' then
Exit;
URLComboBoxClick(Sender);
end;

This code first checks the Key parameter to see whether the Enter key was pressed. If so, it sets Key to 0 and calls the URLComboBoxTest method (created in step 6). Setting Key to 0 prevents the speaker from beeping when the Enter key is pressed. The call to the URLComboBoxClick method loads the URL into the Web browser.

8. Now compile and run the program. Type an URL in the combo box and press Enter. If you typed in a valid URL, the page will load in the HTML control.

Het gaat om die stukjes.
Hij geeft een error bij dit soort dingen: if URLComboBox.Text <> `' then delphi zegt dat `' niet goed is.
Wie heeft hier een oplossing voor ?
Thnx :)

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 15-04 22:07

NMe

Quia Ego Sic Dico.

Die backtick moet een quote zijn. Verder geven we hier geen support op andermans scripts, en dat geldt ook voor andermans tutorials. Mail de maker van de tutorial, of gebruik een andere. :)

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


Dit topic is gesloten.