Announcement

Collapse
No announcement yet.

Mask Function TRUE/FALSE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dave Navarro
    replied
    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

    Leave a comment:


  • Gregery D Engle
    replied
    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
    does that explain it better?

    Thanks


    ------------------
    -Greg

    Leave a comment:


  • Scott Turchin
    replied
    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:


  • Gregery D Engle
    started a topic Mask Function TRUE/FALSE

    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

    ------------------
    -Greg
Working...
X