|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
|
2024/3/26 14:48:50 |
标题: |
|
加入我的收藏 |
楼主: |
property Names[S:Integer]:TStrings read fTs write fTs default;
此帖子包含附件:
大小:10.4K |
----------------------------------------------
delphi界写python最强, python界写delphi最强. 写自己的代码, 让别人去运行. |
作者: |
|
2024/3/26 15:03:01 |
1楼: |
(1) property Names: TStrings read fts write fts default; (2) property Names[S: Integer]: TStrings read GetNames writ SetNames default; function GetNames(const S: Intege): TStrings;
----------------------------------------------
-
|
作者: |
|
2024/3/26 15:07:47 |
2楼: |
@zwjchinazwj 我看教程, 上面没说要写方法,
此帖子包含附件:
大小:61.9K |
----------------------------------------------
delphi界写python最强, python界写delphi最强. 写自己的代码, 让别人去运行.
|
作者: |
|
2024/3/26 15:11:40 |
3楼: |
function gs(const S: Integer): TStrings; procedure ws(const S: Integer; const Value: TStrings); public constructor Create; property Names[const S:Integer]:TStrings read gs write ws; default;
最后弄成这样才可以, 难道是教程错了?
----------------------------------------------
delphi界写python最强, python界写delphi最强. 写自己的代码, 让别人去运行.
|
作者: |
|
2024/3/26 15:39:57 |
4楼: |
啥教程?可以丢了。这么简单的语法问题都出错。
----------------------------------------------
-
|
作者: |
|
2024/3/26 16:23:59 |
5楼: |
@bighawk
2021年写的呢.. https://blog.51cto.com/u_15076209/4024580
----------------------------------------------
delphi界写python最强, python界写delphi最强. 写自己的代码, 让别人去运行.
|
作者: |
|
2024/3/26 18:29:24 |
6楼: |
这个……估计应该是复制粘贴的时候少了一些东西吧。
----------------------------------------------
-
|
作者: |
|
2024/3/27 0:18:51 |
7楼: |
这玩意 就只是写组件 在组件属性上默认给你显示而已。最终还是需要代码赋值的。
也就是说 你default 10 直接取依然是 默认值0
----------------------------------------------
-
|
|