misc.bi

Summary
misc.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
ext.misc
Macros
FBEXT_MIN
FBEXT_MAX
FBEXT_SWAPType independant value swapper.
FILE_ITERProvides a simple way to iterate through a directory structure.
Functions
filenameReturns the current filename.

License

Copyright © 2009, FreeBASIC Extended Library Development Group

Contains code contributed and Copyright © 2007, mr_cha0s: ruben.nosp@m..coder@gmai.nosp@m.l.com

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License

ext.misc

Summary
Macros
FBEXT_MIN
FBEXT_MAX
FBEXT_SWAPType independant value swapper.

Macros

FBEXT_MIN

FBEXT_MAX

FBEXT_SWAP

# macro FBEXT_SWAP(a,
b)

Type independant value swapper.

FILE_ITER

Provides a simple way to iterate through a directory structure.

never use this in multiple threads or this on one thread and DIR() on another, etc...

Provides overloaded operators for FOR, STEP and NEXT to allow this syntax

for n as ext.misc.FILE_ITER("path/to/search", attribute) to "" 'or any string you would like to stop at
   print n.filename()
next

The attribute is optional and can be left off compeletely.  Defaults to files.

Summary
Functions
filenameReturns the current filename.

Functions

filename

declare function filename( ) as string

Returns the current filename.

Returns

string containing the latest filename.

# macro FBEXT_SWAP(a,
b)
Type independant value swapper.
declare function filename( ) as string
Returns the current filename.