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

推荐订阅源

WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
P
Palo Alto Networks Blog
T
Threatpost
T
Tor Project blog
T
Tenable Blog
AWS News Blog
AWS News Blog
Project Zero
Project Zero
L
LangChain Blog
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Latest
Security Latest
云风的 BLOG
云风的 BLOG
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
K
Kaspersky official blog
Jina AI
Jina AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
IT之家
IT之家
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog

博客园 - 伊飏

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;