This article gives an example of how Android obtains mobile phone numbers and carrier information. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
Package com.pei.activity;
Import android.app.Activity;
Import Android.os.Bundle;
Import Android.view.View;
Import Android.view.View.OnClickListener;
Import Android.widget.Button;
Import Android.widget.TextView;
/**
* Class
Web sites Chrome,firfox The following ports are inaccessible, so you should avoid the following ports when configuring your own sites:Tcpmux 7,//Echo 9,//Discard,//systat,//daytime,//netstat,//QOTD,//ch Argen,//FTP data,//FTP access,//SSH,//Telnet,//SMTP PNS,//time,//Name ,//Nicname,//Domain PRIV-RJS,//,//finger,//Ttylink,//Supdup 101,//HO Striame 102,//ISO-TSAP 103,//GPPITNP 104,//Acr-nema 109,//POP2,//POP3 111,//SUNRPC 113, Auth,//SFTP 117,//Uucp
The customer's database was manually upgraded recently, and there was a problem. The upgrade code is:
With adoquery1 do
Begin
Close;
SQL. clear;
SQL. add ('Update xtsz set column1 =: v0'); // The column type is bit
Parameters [0]. value: = false;
ExecSQL;
End;
Execute the SQL statement in the access query. If the value of v0 is false or true, it must be 0 or not. Is 0 false or is it false if it is not 0? Open the existing records in the xtsz
Problem description
In the WPF application, the DataGrid is used to display employee information, including company name, name, age, and phone number. In some cases, the telephone column needs to be hidden, so the following code is used in the back-end code of the screen to control the display of the telephone column.
if (isShowTelephone){ this.DataGrid_People.Columns[3].Visibility = Visibility.Visible;}else{ this.DataGrid_People.Columns[3].Visibility = Visibility.Collapsed;}Of course, yo
Today, I suddenly needed to set the initial value and step size for columns with automatic numbers in the Access database, but I found that no direct visual operation was performed. However, I think that since it can use SQL statements, it can be set with SQL statements. I tried it and it was OK.
Modify using SQL:
The method is as follows:
Alter table tablename
Alter column ID counter (100, 5)
Where
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.