惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Palo Alto Networks Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
Schneier on Security
Engineering at Meta
Engineering at Meta
I
InfoQ
L
LangChain Blog
Cyberwarzone
Cyberwarzone
T
Tenable Blog
WordPress大学
WordPress大学
P
Privacy & Cybersecurity Law Blog
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Jina AI
Jina AI
C
CERT Recently Published Vulnerability Notes
Scott Helme
Scott Helme
博客园 - 三生石上(FineUI控件)
酷 壳 – CoolShell
酷 壳 – CoolShell
Know Your Adversary
Know Your Adversary
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Last Watchdog
The Last Watchdog
Last Week in AI
Last Week in AI
Cloudbric
Cloudbric
S
SegmentFault 最新的问题
爱范儿
爱范儿
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 叶小钗
AI
AI
T
Tor Project blog
I
Intezer
T
Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Visual Studio Blog
N
News and Events Feed by Topic
Latest news
Latest news
S
Security Affairs
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog RSS Feed
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
S
Securelist

博客园 - 伊飏

c3p0配置 - 伊飏 - 博客园 好日子,占个位子 使用Adsutil.vbs来获取IIS用户的密码 第一天:计算机体系结构分类,存储器的一部分 使用AspNetPager分页控件、分页存储过程及用户控件基类实现的完美分页功能 ASP.NET中生成条形码 在SQL Server 2000中还原不存在的数据库 在WinForm应用程序中实现自动升级 实现在网页中按下回车键时,激发指定的按钮 Flash控制函数 鲜为人知的终结进程秘籍 无广告版Hotmail(Windows Live Mail)的界面,清爽吧? Delphi中的时间操作技术 Format函数的用法 MD5算法的T-SQL实现 怎样让IE6运行Applet程序 - 伊飏 - 博客园 发布一个自己写的文件重命名工具,支持正则表达式替换和自定义规则。 数字转换成字符串时保留小数位数 - 伊飏 - 博客园 一个简单的动态编译器,支持C#和VB.NET。当你想测试一些简单的代码的时候可以使用。
快被它郁闷死了。
伊飏 · 2006-05-03 · via 博客园 - 伊飏

今天第一次写Delphi代码,老是提示“Constant expression expected”。折腾了2个来小时,才解决这个问题,原来就少了一个begin...end;
太恶心了,错误提示和真正的原因一点都不着边,欲哭无泪啊。

出错代码:
  case param[1][1] of
    'd':
      parts[i] := DateToStr(Date);
    'i':
        parts[i] := '';
        iIndexStart := StrToInt(param[2]); //老提示这里出错
        iIndexPosition := i;
        iIndexLength := StrToInt(param[3]);
    'r':
        parts[i] := '';
        iRndPosition := i;
        iRndLength := StrToInt(param[2]);
    end;

改下后代码:
  case param[1][1] of
    'd':
      parts[i] := DateToStr(Date);
    'i':
      begin
        parts[i] := '';
        iIndexStart := StrToInt(param[2]);
        iIndexPosition := i;
        iIndexLength := StrToInt(param[3]);
      end;
    'r':
      begin
        parts[i] := '';
        iRndPosition := i;
        iRndLength := StrToInt(param[2]);
      end;
    end;