Link to home
Start Free TrialLog in
Avatar of sbsbats
sbsbatsFlag for New Zealand

asked on

return the ? charactor

Hello,

Want a simple piece of code that returns the ? charactor - I know the OS should prevent this but has anybody found/know of a fudge workaround? not bothered what language just want to show it being done
ASKER CERTIFIED SOLUTION
Avatar of chaau
chaau
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sbsbats

ASKER

OK will make it clear sorry - want to save a file with ? in the name (using VBA or somehting) - and yes I know technically you can't - any smart ideas?
Const QMARK = &h3f

Dim QMark As Integer
QMark = &h3f

response.write(Hex(3F))
Use the Hex code for it, or Oct 077, or Dec 63.
Avatar of Bill Prew
Bill Prew

If you are on Windows a ? is an illegal character in a filename, so I don't think the O/S will let you create a file with a question mark in the name, no matter how you code it.  So I don't think it can be done.

~bp
Bill is correct about the name itself. That's an illegal character for the name only.
Avatar of sbsbats

ASKER

cheers