FileAttr-Function [Runtime] /text/sbasic/shared/03020405.xhp Sun Microsystems, Inc. converted from old format - fpe
FileAttr function FileAttr Function [Runtime] Returns the access mode or the file access number of a file that was opened with the Open statement. The file access number is dependent on the operating system (OSH = Operating System Handle).
If you use a 32-Bit operating system, you cannot use the FileAttr-Function to determine the file access number. See also: Open Syntax: FileAttr (FileNumber As Integer, Attribute As Integer) Return value: Integer Parameters: FileNumber: The number of the file that was opened with the Open statement. Attribute: Integer expression that indicates the type of file information that you want to return. The following values are possible: 1: The FileAttr-Function indicates the access mode of the file. 2: The FileAttr-Function returns the file access number of the operating system. If you specify a parameter attribute with a value of 1, the following return values apply: 1 - INPUT (file open for input) 2 - OUTPUT (file open for output) 4 - RANDOM (file open for random access) 8 - APPEND (file open for appending) 32 - BINARY (file open in binary mode). Example: Sub ExampleFileAttr Dim iNumber As Integer Dim sLine As String Dim aFile As String aFile = "c:\data.txt" iNumber = Freefile Open aFile For Output As #iNumber Print #iNumber, "This is a line of text" MsgBox FileAttr(#iNumber, 1 ),0,"Access mode" MsgBox FileAttr(#iNumber, 2 ),0,"File attribute" Close #iNumber End Sub
n> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoportenum.cxx
mit/basegfx?h=feature/wasm&id=898cbb22f07a2c1487700326f134fe54e7a13f4d'>use for-range on Sequence in basctl..canvas
AgeCommit message (Expand)Author
2024-05-28sw: rename SwIndexes to SwContentIndexes in commentsMiklos Vajna
2024-05-17loplugin:ostr in sw/../unocoreNoel Grandin
2024-05-16tdf#161035: The previous bookmarks can legitimately be not processedMike Kaganski
2024-04-19tdf#160700: Avoid both bookmark-start and bookmark-end at the same indexMike Kaganski
2024-01-30tdf#159438: when there's no frame, close previous bookmark firstMike Kaganski
2024-01-30Make sure to only dynamic_cast onceMike Kaganski
Noel Grandin
2020-05-04Fix typoAndrea Gelmini
2020-04-22tdf#42949 Simplify use of rtl::math::approxEqual in include/basegfx/Gabor Kelemen
2020-04-19loplugin:flatten in basegfxNoel Grandin
2020-04-14loplugin:buriedassign in b*Noel Grandin
2020-03-30OSL_ASSERT->assert in basegfxNoel Grandin
2020-03-30remove Matrix class from basegfx, convert B2DHomMatrix testsTomaž Vajngerl
2020-03-29basegfx: test B2DHomMatrix and Matrix togetherTomaž Vajngerl
2020-03-23make more classes private in mergedlibs modeNoel Grandin
2020-03-14tdf#130974 replace `rtl::math::isSignBitSet` with `std::signbit`.Yukio Siraichi
2020-03-09tdf43157:Clean up OSL_ASSERT, DBG_ASSERT, etc..Pelin Kuran
2020-03-04tdf#130150 Improve clipping in PDF exportArmin.Le.Grand (CIB)
2020-02-14tdf#130655 callback interface for 3D and secure dashArmin Le Grand
2020-02-14tdf#130655 added callback interface to ::applyLineDashingArmin Le Grand (Collabora)
2020-02-07tdf#130478 Enhance Dashed line drawing on all systemsArmin Le Grand (Collabora)
2020-02-03loplugin:constantparamNoel Grandin
2020-02-01make update_pch also consider files in <module>/src/**/incLuboš Luňák
2020-01-31new loplugin:namespaceindentationNoel Grandin
2020-01-26Fix typoAndrea Gelmini
2020-01-23tdf#129845: Better solution using already existing infoArmin Le Grand
2020-01-14clang-tidy modernize-concat-nested-namespace in basegfxNoel Grandin
2020-01-13crashtesting: downgrade assert to a warningCaolán McNamara
2019-12-26Test for B2DRangeTomaž Vajngerl
2019-12-18sal_Char->char in avmedia..basicNoel Grandin
2019-12-17loplugin:expandablemethodsNoel Grandin
2019-12-11basegfx: fix assertion textChris Sherlock
2019-12-10tdf#43157 basegfx: remove OSL_ENSURE preconditionsChris Sherlock