Prev | Current Page 354 | Next

David Berube

"Practical Reporting with Ruby and Rails"

microsoft.com/en-us/library/ms646839.aspx.
Filter: The filter parameter is an array of two-element arrays. The first member of
each two-element array is a string with a description, and the second is a string with
a wildcard. This lets the user select the type of files displayed. The program has two
filters: an Access database filter showing only files with an .mdb extension, and an ???all
files??? filter showing all files. Although virtually all Access databases have an .mdb
extension, it??™s convention to give the user the option of viewing all files. Note that this
file-type filtration mechanism is intended for convenience and not for security. If the
user types a new filter into the file name box and presses Enter, that filter will override
the programmer-supplied filters.
Flags: This parameter is a bit field. You set individual options by bitwise ORing
them together. (It would be more Ruby-like to instead use an options hash, but the
designer of this interface has chosen to stick more closely to the Win32 API.


Pages:
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
Giorgio Moroder Maxïmo Park Timo Maas elf bot skrypty Brian McKnight