gpt4 book ai didi

progress-4gl - 查找基本文件名

转载 作者:行者123 更新时间:2023-12-05 03:14:59 27 4
gpt4 key购买 nike

查找正在进行的基本文件名的最简单方法是什么。

我有:

 /tmp/admin/run/test.txt

我想要:

 test.txt

10.2b

最佳答案

使用 R-INDEX() 函数找到最右边的“/”。

define variable path as character no-undo initial "/tmp/admin/run/test.txt".

display
path format "x(60)" skip
substring( path, r-index( path, "/" ) + 1 ) format "x(60)"
.

关于progress-4gl - 查找基本文件名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21784048/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com