CreateValidFilename(InvalidFilename.s)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

CreateValidFilename(InvalidFilename.s)

Post by Trond »

We have a CheckFilename() function. But, if this function returns 0 we don't know what is wrong with the filename! I have a program which creates the filename from an url without user intervention and it must (obviously) create a valid filename. The CreateValidFilename() function should return the parameter minus the invalid characters.
Dr. Dri
Enthusiast
Enthusiast
Posts: 243
Joined: Sat Aug 23, 2003 6:45 pm

Post by Dr. Dri »

Maybe something like "GetValidPart" (it would look more like other filename commands)

Dri
Post Reply