You could writing something like that yourself using "regular exprssions" which are supported in PB/DLL 6
--Dave
------------------
Home of the BASIC Gurus
www.basicguru.com
Announcement
Collapse
No announcement yet.
Mask Function TRUE/FALSE
Collapse
X
-
Scott,
I'm wanting something a little more advanced then the Format
command. I want to be able to have my own MASK controls
by using a simple function like this:
Code:if MASK(sBuffer$, "###-##-####") then msgbox "Social Security Number" end if if MASK(sBuffer$, "(###)-###-####" then msgbox "Phone Number" end if if MASK(sBuffer$, "MM-/DD-/YYYY" then msgbox "DATE" end if
Thanks
------------------
-Greg
Leave a comment:
-
Do you mean like this:
Format$(FindData.nFileSizeLow\1024,"#,###")
Or:
Format$(xyz,"hh:mm tt")
Format$ is built in...
OR did I miss something here?
Also used:
GetTimeFormat %LOCALE_USER_DEFAULT, %TIME_NOSECONDS, st, "hh:mm tt", zText, 256
Where st is a SYSTEMTIME structure and placed into ASCIIZ variable "zText".
------------------
Scott
Leave a comment:
-
Mask Function TRUE/FALSE
Anyone have a nice function like this?
a& = MASK("1234-567", "####-###")
a& = MASK("1:20:30 AM") , "H:MM:SS AMPM")
any ideas?
Thanks
------------------
-GregTags: None
Leave a comment: