2019年7月5日

Delphi 字符串函数 StrUtils(大全)

摘要: 引用单元: StrUtils; 首部 function AnsiResemblesText(const AText, AOther: string): Boolean; $[StrUtils.pas 功能 返回两个字符串是否相似 说明 ANSI(American National Standards 阅读全文

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

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 阅读(2687) 评论(0) 推荐(0) 编辑

Delphi 日期函数列表

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

posted @ 2019-07-05 15:35 滔Roy 阅读(775) 评论(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 阅读(1638) 评论(0) 推荐(0) 编辑

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

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

posted @ 2019-07-05 11:59 滔Roy 阅读(888) 评论(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 阅读(1143) 评论(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 阅读(1334) 评论(0) 推荐(0) 编辑

delphi xe10 网络连接

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

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

delphi xe10 蓝牙

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

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

delphi xe10 网络文件传送

摘要: 待补充 阅读全文

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

delphi xe10 消息操作

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

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

delphi xe10 手机内部系统相关操作(手机信息、震动、剪贴板、键盘、电话、拨号)

摘要: //获取手机信息 function GetPhoneInfo(): string; Var TelephonyManager: JTelephonyManager; TelephonyServiceNative: JObject; begin result := ''; TelephonyServiceNative := SharedActivityContext.getSyst... 阅读全文

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

delphi xe10 麦克风、摄像头操作

摘要: TakePhotoFromCameraAction1: TTakePhotoFromCameraAction; // 通过手机摄像头获取图片TakePhotoFromLibraryAction1: TTakePhotoFromLibraryAction; //获取手机已存在图片ShowShareSh 阅读全文

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

delphi xe10 传感器操作

摘要: 更新日期:2019.07.05 阅读全文

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

Delphi XE10 文件目录/路径操作 (Andorid、ios、windows)

摘要: Delphi XE10 文件目录/路径操作 (Andorid、ios、windows) //获取临时文件路径(支持安卓、IOS) function GeFileName(const AFileName: string): string; begin {$IFDEF ANDROID} Result : 阅读全文

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

delphi 安卓开发常用

摘要: delphi 安卓开发有几个常用的pas: FMX.Helpers.Android, Androidapi.JNI.Net, Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.JavaTypes, FMX.platform, FMX.Pla 阅读全文

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

delphi xe10 中使用剪贴板(跨平台)

摘要: VCL 中如何使用剪贴板咱就不说了,FMX 做为一个新的框架,提供了跨平台的剪贴板支持。FMX 对剪贴板的支持来自两个接口: IFMXClipboardService:位于 FMX.Platform.pas 中 1 2 3 4 5 6 7 8 9 10 11 IFMXClipboardService 阅读全文

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

导航