home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 35 / hot35.iso / ficheros / LC / SIMPWN93.ZIP / SIMPWIN.ZIP / FUNG4.TXT < prev    next >
Text File  |  1997-10-22  |  2KB  |  41 lines

  1.     Get_string is a standard string entry. It has backspace with no cursor
  2. or insert. It is masked and formated. It's parameters are:pointer to string,
  3. a mask string, a format string, X and Y coordinates, Mask strip switch, and
  4. default display switch. The mask string is any ASCII character for and
  5. space for a mask, The format string is made up of spaces where masked and
  6. format characters (see format below) for entries. Both mask and format
  7. must be consistent for proper function. Error detection is in the debug lib
  8. but masked characters and entries must match. The strip switch is ON for
  9. stripping the mask form entry and 0 for the masks inclusion in entry. The
  10. default display switch is ON or 1 to display what is in the enter string and
  11. OFF or 0 for no display and mask display. The x y coordinate are for display
  12. placement in the current window.
  13.          
  14. Example:
  15.  
  16.    char name[10];
  17.        
  18.    get_string(name,"         ","uAAAAAAAA",3,3,1,1);
  19.  
  20.    This call will display the contents of name at coordinates 3, 3, mask
  21. all but alpha characters and force an upper case on the first entry. It will
  22. strip the mask and if any character but backspace is hit first clear name.
  23. It will exit on esc with no data change or return.
  24.  
  25.    Format characters:                     
  26.                                                    
  27. *  any ascii character                   
  28. A  alphanumeric character                
  29. U  upper case alpha only                 
  30. L  lower case alpha only                 
  31. u  forced upper case alpha               
  32. l  forced lower case alpha               
  33. 9  digits 0 - 9 only                                      
  34. #  digits 0 - 9 and -
  35. F  digits 0 - 9, -, . only               
  36. e  digits 0 - 9, -, ., e, E only
  37. h  digits 0 - 9, a,b,c,d,e.f,A,B,C,D,E,F,- only
  38. o  digits 0 - 7,- only
  39. T  t, T, f, F only
  40. Y  y, Y, n, N only
  41.