2019年7月5日

Delphi 日期函数(Day、Mon、Year、Week)使用方法

摘要: Delphi 日期函数(Day、Mon、Year、Week)使用方法 1、Day 开头的函数 ● function DateOf(const Avalue: TDateTime): TDateTime; 描述 使用 DateOf 函数用来把一个 TDateTime 类型的变量转变成一个 只带有日期的 阅读全文

posted @ 2019-07-05 15:39 滔Roy 阅读(2765) 评论(0) 推荐(0) 编辑

Delphi 日期函数列表

摘要: Delphi 日期函数列表 引用单元 :DateUtils CompareDate 比较两个日期时间值日期部分的大小 CompareDateTime 比较两个日期时间值的大小 CompareTime 比较两个日期时间值时间部分的大小 DateOf 去除日期时间值的时间部分 DateTimeToJul 阅读全文

posted @ 2019-07-05 15:35 滔Roy 阅读(794) 评论(0) 推荐(0) 编辑

Delphi Copy 函数 和 Pos函数

摘要: 1、copy(a,b,c); -- 复制指定的字符串 a:就是copy源,就是一个字符串,表示你将要从a里copy一些东西, b:从a中的第b位开始copy(包含第1位), c:copy从第b位开始后的c个字符, 示例: m:='the fellowship of the ring' s:=copy 阅读全文

posted @ 2019-07-05 15:22 滔Roy 阅读(1659) 评论(0) 推荐(0) 编辑

delphi xe10 手机程序事件服务操作、退出键操作

摘要: //程序事件服务操作 var FMXApplicationEventService: IFMXApplicationEventService; begin if TPlatformServices.Current.SupportsPlatformService (IFMXApplicationEventService, IInterface(FMXApplicationEventServ... 阅读全文

posted @ 2019-07-05 11:59 滔Roy 阅读(896) 评论(0) 推荐(0) 编辑

delphi xe10 安卓设备信息

摘要: //引用单元 FMX.Android.DeviceInfo.GetInformation; Memo1.Lines.Add('ID:'+FMX.Android.DeviceInfo.ID); Memo1.Lines.Add('IMEI:'+FMX.Android.DeviceInfo.IMEI); Memo1.Lines.Add('User:'+FMX.Android.Devic... 阅读全文

posted @ 2019-07-05 11:54 滔Roy 阅读(1150) 评论(1) 推荐(0) 编辑

delphi xe10 获取屏幕截图

摘要: //截取屏幕图片 function MakeScaleScreenshot(Sender: TControl): TBitmap; function GetScreenScale: Single; var ScreenService: IFMXScreenService; begin Result := 1; if TPlatformServices.Curr... 阅读全文

posted @ 2019-07-05 11:51 滔Roy 阅读(1343) 评论(0) 推荐(0) 编辑

delphi xe10 网络连接

摘要: //当前网络状态(引用 Androidapi.JNI.Network.pas) IsConnected //连接 IsWiFiConnected //Wifi是否连接 IsMobileConnected //移动网络是否连接 阅读全文

posted @ 2019-07-05 11:49 滔Roy 阅读(806) 评论(0) 推荐(0) 编辑

delphi xe10 蓝牙

摘要: //蓝牙 System.Bluetooth //单元中主要包含以下几个类 TBluetoothManager、TBluetoothDeviceList、TBluetoothAdapter、TBluetoothDevice、TBluetoothService、 TBluetoothServiceList、TBluetoothSocket TBluetoothManager //蓝牙管理器,用于蓝... 阅读全文

posted @ 2019-07-05 11:47 滔Roy 阅读(932) 评论(0) 推荐(0) 编辑

delphi xe10 网络文件传送

摘要: 待补充 阅读全文

posted @ 2019-07-05 11:44 滔Roy 阅读(498) 评论(0) 推荐(0) 编辑

delphi xe10 消息操作

摘要: //消息提醒(从手机屏幕顶部向下滑动,出现的提示消息) NotificationC: TNotificationCenter; procedure TNotificationsForm.btnSendNotificationImmediatelyClick( Sender: TObject); var Notification: TNotification; begin { ver... 阅读全文

posted @ 2019-07-05 11:42 滔Roy 阅读(780) 评论(0) 推荐(0) 编辑

导航