Why can't functions such as Log. d be used in other places than onCreate? log. doncreate

Source: Internet
Author: User

Why can't functions such as Log. d be used in other places than onCreate? log. doncreate
I am a self-taught dish. If you have any questions, I 'd like to ask:

Is it necessary to use functions such as Log. d after onCreate?

I used the mainactivity as soon as it came up. I cannot explain the log. d symbol.


I got a reply from the great gods:

Oncreat is a identifier for starting activty. If the program has not started, how can I print logs for you?


When the log10 () function cannot be used in delphi, the following error occurs: Undeclared identifier: 'log'

Directly create a project and put an edit project. The Code is as follows: delphi6 can run normally.
Unit Unit1; Messages, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Math, StdCtrls; typeTForm1 = class (TForm) Edit1: TEdit; procedure FormCreate (Sender: TObject); private {Private declarations} public {Public declarations} end; varForm1: TForm1; implementation {$ R *. dfm} procedure TForm1.FormCreate (Sender: TObject); begintryedit1.Text: = FloatToStr (Log10 (10); inclutend; end.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.