Search the Community
Showing results for tags 'read only'.
-
LS Is it possible to open file(s) in scite in read only mode ? If so, How ? Thnx
-
I have 2 items (a field box and a bypass checkbox). every time the box is checked i need the field to become writable. unchecked is read only displaying some text. this is as far as i got as I am stuck at making it read/write toggle #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <EditConstants.au3> #include <WindowsConstants.au3> $hGUI = GUICreate("Test", 500, 500) Global $hCombo = GUICtrlCreateInput("", 10, 10, 200, 20, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) GUICtrlSetBkColor($hCombo,0xe7e5e5) Global $cbox = GUICtrlCreateCheckbox ("", 40,50,10,20) GUICtrlSetState($cbox, $GUI_Unchecked) GUISetState() Global $sCurrCombo = "" While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $cbox If GUICtrlRead($cbox) <> $sCurrCombo Then $sCurrCombo = GUICtrlRead($cbox) GUICtrlSetStyle ($hCombo, $SS_LEFTNOWORDWRAP) GUICtrlSetBkColor($hCombo,0xFFFFFF) MsgBox(0, "Choice", "PLease enter the text") EndIf EndSwitch WEnd
-
My SQLite.au3 include contains this entry on line 43 Global Const $SQLITE_READONLY = 8 ; /* Attempt to write a readonly database */ But, is not in the Help file. The right page, I think is _SQLite_Open.htm, and does not contain a reference to opening a SQLite db as ReadOnly. Should this be added to the Help File? BUT, what I really want to know is this: What is the best way to determine whether a SQLite db should be opened as ReadOnly? I have WAL files active. Can I check for WAL and if exists, force open ReadOnly? ie, if a user is already logged on, simply for other users to Read Only? Is this the right question to ask?