unit unit1;
interface
uses
Windows, Messages....
type
TFormName = (Casefm1, Casefm2, Casefm3);
function xxx(): Boolean;
var
StrFormName: String;
CaseFormName: TFormName;
begin
StrFormName := 'Case' + vFormName;
// 將 FormName(物件) 與 TFormName(值) 做區隔。
// (vFormName為帶有各FormName的字串變數)
CaseFormName := TFormName(GetEnumValue(TypeInfo(TFormName), StrFormName));
case CaseFormName of
Casefm1:
begin
..............
end;
Casefm2:
begin
..............
end;
Casefm3:
begin
...............
end;
【参考链接】
- string 的 case 判断方法 | 三窟
The Delphi menu font seems to always revert to the default (8, Tahoma) Issue,Someone abroad asked about it,But there's no solution。For now, the temporary solution I can think of is to set up a function key (Can be set as a hotkey),So that when the user encounters the font becoming small,They can manually reset the font size。(During testing, changing the Windows display scaling percentage can make the menu font revert to the default)
之前写过一篇
Joomla 好像从 2.X 甚至 3.X 就开始,会自动将文章内的 Email 地址自动转换为超链接格式。今天在针对某个页面的 Email 地址使用 Javascript 语法,结果却导致点击时,会弹出两个 Outlook 窗口,因此需要关闭内置的转换功能。
用 Joomla 4 建立新网站,开启 SEO 及 URL 重写后,网站就出现问题,一开始在 Google 上搜索自己的文章 - 「
陆续有同事反馈新电脑的 Excel 日期格式少了“行事历类型”栏位,因此没法选择“中华民国历”的格式。上网查询后,有的文章说可以去下载 microsoft-windows-internationalfeatures-taiwan-package 的 cab 文件来安装,但我实际下载安装后,会出现 0x800f0818 的错误代码,似乎是版本不兼容。








