发信人: ilike()
整理人: flyingmist(2000-03-05 23:24:06), 站内信件
|
【 在 edison (edison) 的大作中提到: 】 : 有没有什么办法可以方便的将软件的编译时间与次数记录下来. : 然后在软件的 about 里显示? 增加一个全局变量: string gs_build=string(date())+string(now()) 可以记录编译时间。
-- ※ 修改:.ilike 于 Dec 2 13:25:13 修改本文.[FROM: 202.96.156.11] ※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 202.96.156.11]
发信人: edison (edison), 信区: Powerbuilder 标 题: Re: 有没有什么办法? 发信站: 网易 BBS (Thu Dec 2 13:56:16 1999), 站内信件
高! 其实这个问题我知道答案, 我只想知道有多少人已经知道了!呵呵, 不好意思!
请看:
Dynamic Variable Assignment Variables can be initialized with a value when they are declared. The value set can be either a constant value or the result of an expression. If you make an assignment during a variable's declaration, the value set is determined at compile time, not during runtime execution. For example, the following code sets the variable to the time the application was compiled; the variable will not be updated each time this code is called:
String szTime = String( Now())
The only obvious use for this kind of initialization is if you want to capture the time that an application is compiled for auditing or other purposes.
这就是我上次给大家推荐的英文 PB 书。
这本书的中文完全翻译《PowerBuilder 6.0 程序设计大全》,但是这段它竟然没翻译, 砍掉了!
我也是无意发现的!
ilike 这小子一定还有很多法宝没公布!!!!
【 在 ilike (自在飞花) 的大作中提到: 】 : 增加一个全局变量: : string gs_build=string(date())+string(now()) : 可以记录编译时间。
-- 谢谢没有在 "将本文章寄一份给原作者" 处打勾, 再次感谢!
※ 来源:.网易 BBS bbs.netease.com.[FROM: bbs.szptt.net.cn]
|
|