if (Command = 1) then
    HtmlHelp(Application.Handle,
      PChar(Format('%s::/H%5.5d.htm',
        [Application.HelpFile, Data])),
      HH_DISPLAY_TOPIC, 0);
Format('%s::/H%5.5d.htm'请问是什么意思?如果要打开1.htm,怎么办

解决方案 »

  1.   

    比如:
       a:='txl';
       s:=format('This is %s',[a]);
     结果得到的s就是:This is txl
      

  2.   

    格式输出!Delphi Help里有例子自己看多好!TextOut(0,0,format('%d %.2f',[A,B]));用法类似C sprinf
      

  3.   

    (*//
    声明:
      本人保证所提供的方法是所知的最好方法
      解答问题纯属公益性质
      所以请不要向我追问
      如果有时间自会关注后续问题
    问题:Format() VCL函数的用法?
    设计:Zswang
    日期:2002-09-30
    附言:来自http://zswang.51.net/document/zsdoc02.txt
    //*)━━━━━━━━━━━━━━━━━━━━━
    首部  function Format(const Format: string; const Args: array of const): string; $[SysUtils.pas
    功能  返回按指定方式格式化一个数组常量的字符形式
    说明  这个函数是我在Delphi中用得最多的函数,现在就列举几个例子给你个直观的理解
    "%" [索引 ":"] ["-"] [宽度] ["." 摘要] 类型
    Format('x=%d', [12]); //'x=12' //最普通
    Format('x=%3d', [12]); //'x= 12' //指定宽度
    Format('x=%f', [12.0]); //'x=12.00' //浮点数
    Format('x=%.3f', [12.0]); //'x=12.000' //指定小数
    Format('x=%.*f', [5, 12.0]); //'x=12.00000' //动态配置
    Format('x=%.5d', [12]); //'x=00012' //前面补充0
    Format('x=%.5x', [12]); //'x=0000C' //十六进制
    Format('x=%1:d%0:d', [12, 13]); //'x=1312' //使用索引
    Format('x=%p', [nil]); //'x=00000000' //指针
    Format('x=%1.1e', [12.0]); //'x=1.2E+001' //科学记数法
    Format('x=%%', []); //'x=%' //得到"%"
    S := Format('%s%d', [S, I]); //S := S + StrToInt(I); //连接字符串
    参考  proceduer SysUtils.FmtStr
    例子  Edit1.Text := Format(Edit2.Text, [StrToFloatDef(Edit.3.Text, 0)]);
    ━━━━━━━━━━━━━━━━━━━━━
      

  4.   

    <%s>::/H<%5.5d>.htm
    ~~~~    ~~~~~~~ 这样看不就可以了!
      

  5.   

    format('0.00',[a float])
    ...................
    看帮助吧.