小编use*_*864的帖子

Delphi设置为只读取文件夹和子文件夹中的文件

如何将特定文件夹和子文件夹中的文件只能在delphi中读取?我知道我可以将FileSetAttr的文件夹设置为只读,但有没有办法从文件夹和子文件夹中放入文件?

谢谢

delphi delphi-7

1
推荐指数
1
解决办法
1292
查看次数

如何在if-then-else语句中运行多个命令?

我怎么能在delphi 7中做这样的事情

if FileExists
    then 
        Filesetattr
        DownloadFile
    else
        Downloadfile
        Filesetattr
Run Code Online (Sandbox Code Playgroud)

我试过了; 它不起作用.我用逗号(,)尝试也没用.所以我希望在一个"then语句"中执行两个或更多命令,在"else语句"中执行两个或多个命令

delphi syntax if-statement

-5
推荐指数
1
解决办法
3208
查看次数

标签 统计

delphi ×2

delphi-7 ×1

if-statement ×1

syntax ×1