home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / ARQS_ZIP / TXTFMT1.ZIP / FORM2.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1992-06-25  |  1.9 KB  |  37 lines

  1. Form2
  2. Help for Format Example
  3. Form2*
  4. Text1
  5. The valid format characters:   9 - Numbers ("." OK): 999.99  A - Alpha onle: AAAAAAA        ! - Convert to upper case: !!!!! X - Anything: XXXXXXX
  6. Text8
  7. To imbed literal characters in a format string, you must prefix the string with   "@L ".  For exampl      "@L 99/99/99"       - Dates                              "@L 999-99-9999"   - Social Security Number       "@L 999-999-9999   - Phone #
  8. Text2
  9. To use the format functions in your code:       1) Add MODULE1.BAS to your project           2) Put calls to MyFormat(), CheckFormat(), and     InitFormat() in the Text Control as shown        below:
  10. Text3
  11. Calling sequences: 
  12. Text6
  13. FMyFormat(Control, KeyAscii, FormatString)      - Put in KeyPress event
  14. Text5
  15. DCheckFormat(Control, FormatString, DoBeep)  - Put in LostFocus event
  16. Text7
  17. LInitFormat(Control, FormatString)                    - Put in GotFocus event
  18. Label1
  19. Warning:
  20. Text4
  21. This is only sample code!  It is only meant to get you started.  It has not been thoroughly tested.  If you have questions, contact Ron Wodaski at 412-833-7765.
  22. LitCtl
  23. Imbedded Literals
  24. CloseCtl
  25. Close
  26. CloseCtl_Click
  27. Form2
  28. LitCtl_Click
  29. Text7
  30. Visible
  31. Text8_Change
  32. Text8
  33. Text1
  34. Text2
  35. CloseCtl_Click
  36. LitCtl_Click
  37.