[Gambas-user] How to manage filenames whit invalid characters in gambas.
Bruce Steers
bsteers4 at gmail.com
Wed Feb 15 22:22:22 CET 2023
On Wed, 15 Feb 2023 at 21:06, Martin <mbelmonte at belmotek.net> wrote:
> El 15/2/23 a las 16:50, T Lee Davidson escribió:
> > I am not aware of any. System issues like that can be handled in a shell
> > relatively easily.
> ok, indeed I use a bash script, but I want to know if there, in Gambas,
> are something to do that.
> Regards.
> Martin.
>
Well no , because they are not "invalid" characters.
you could write something pretty easily using Replace and Move
the odd chars seem to be where the dot should be.
for any 3 letter extension something like this should do the trick...
If sFile[sFile.Len-4]<>"." then Move sFile to Replace(sFile,
sFile[sFile.Len-4], ".")
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230215/526b52f3/attachment-0001.htm>
More information about the User
mailing list