__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Property" script:language="StarBasic"> REM ======================================================================================================================= REM === The Access2Base library is a part of the LibreOffice project. === REM === Full documentation is available on http://www.access2base.com === REM ======================================================================================================================= Option Compatible Option ClassModule Option Explicit REM ----------------------------------------------------------------------------------------------------------------------- REM --- CLASS ROOT FIELDS --- REM ----------------------------------------------------------------------------------------------------------------------- Private _Type As String ' Must be PROPERTY Private _This As Object ' Workaround for absence of This builtin function Private _Parent As Object Private _Name As String Private _Value As Variant Private _ParentDatabase As Object REM ----------------------------------------------------------------------------------------------------------------------- REM --- CONSTRUCTORS / DESTRUCTORS --- REM ----------------------------------------------------------------------------------------------------------------------- Private Sub Class_Initialize() _Type = OBJPROPERTY Set _This = Nothing Set _Parent = Nothing _Name = "" _Value = Null End Sub ' Constructor REM ----------------------------------------------------------------------------------------------------------------------- Private Sub Class_Terminate() On Local Error Resume Next Call Class_Initialize() End Sub ' Destructor REM ----------------------------------------------------------------------------------------------------------------------- Public Sub Dispose() Call Class_Terminate() End Sub ' Explicit destructor REM ----------------------------------------------------------------------------------------------------------------------- REM --- CLASS GET/LET/SET PROPERTIES --- REM ----------------------------------------------------------------------------------------------------------------------- Property Get Name() As String Name = _PropertyGet("Name") End Property ' Name (get) Public Function pName() As String ' For compatibility with < V0.9.0 pName = _PropertyGet("Name") End Function ' pName (get) REM ----------------------------------------------------------------------------------------------------------------------- Property Get ObjectType() As String ObjectType = _PropertyGet("ObjectType") End Property ' ObjectType (get) REM ----------------------------------------------------------------------------------------------------------------------- Public Function Properties(ByVal Optional pvIndex As Variant) As Variant ' Return ' a Collection object if pvIndex absent ' a Property object otherwise Dim vProperty As Variant, vPropertiesList() As Variant, sObject As String vPropertiesList = _PropertiesList() sObject = Utils._PCase(_Type) If IsMissing(pvIndex) Then vProperty = PropertiesGet._Properties(sObject, _This, vPropertiesList) Else vProperty = PropertiesGet._Properties(sObject, _This, vPropertiesList, pvIndex) vProperty._Value = _PropertyGet(vPropertiesList(pvIndex)) End If Exit_Function: Set Properties = vProperty Exit Function End Function ' Properties REM ----------------------------------------------------------------------------------------------------------------------- Property Get Value() As Variant Value = _PropertyGet("Value") End Property ' Value (get) REM ----------------------------------------------------------------------------------------------------------------------- REM --- CLASS METHODS --- REM ----------------------------------------------------------------------------------------------------------------------- Public Function getProperty(Optional ByVal pvProperty As Variant) As Variant ' Return property value of psProperty property name Utils._SetCalledSub("Property.getProperty") If IsMissing(pvProperty) Then Call _TraceArguments() getProperty = _PropertyGet(pvProperty) Utils._ResetCalledSub("Property.getProperty") End Function ' getProperty REM ----------------------------------------------------------------------------------------------------------------------- Public Function hasProperty(ByVal Optional pvProperty As Variant) As Boolean ' Return True if object has a valid property called pvProperty (case-insensitive comparison !) If IsMissing(pvProperty) Then hasProperty = PropertiesGet._hasProperty(_Type, _PropertiesList()) Else hasProperty = PropertiesGet._hasProperty(_Type, _PropertiesList(), pvProperty) Exit Function End Function ' hasProperty REM ----------------------------------------------------------------------------------------------------------------------- REM --- PRIVATE FUNCTIONS --- REM ----------------------------------------------------------------------------------------------------------------------- Private Function _PropertiesList() As Variant _PropertiesList = Array("Name", "ObjectType", "Value") End Function ' _PropertiesList REM ----------------------------------------------------------------------------------------------------------------------- Private Function _PropertyGet(ByVal psProperty As String) As Variant ' Return property value of the psProperty property name If _ErrorHandler() Then On Local Error Goto Error_Function Utils._SetCalledSub("Property.get" & psProperty) _PropertyGet = Nothing Select Case UCase(psProperty) Case UCase("Name") _PropertyGet = _Name Case UCase("ObjectType") _PropertyGet = _Type Case UCase("Value") _PropertyGet = _Value Case Else Goto Trace_Error End Select Exit_Function: Utils._ResetCalledSub("Property.get" & psProperty) Exit Function Trace_Error: TraceError(TRACEFATAL, ERRPROPERTY, Utils._CalledSub(), 0, 1, psProperty) _PropertyGet = Nothing Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, "Property._PropertyGet", Erl) _PropertyGet = Nothing GoTo Exit_Function End Function ' _PropertyGet </script:module>
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Application.xba | File | 74.03 KB | 0644 |
|
| Collect.xba | File | 15.02 KB | 0644 |
|
| CommandBar.xba | File | 14.93 KB | 0644 |
|
| CommandBarControl.xba | File | 14.3 KB | 0644 |
|
| Control.xba | File | 117.95 KB | 0644 |
|
| DataDef.xba | File | 23.77 KB | 0644 |
|
| Database.xba | File | 78.08 KB | 0644 |
|
| Dialog.xba | File | 32.42 KB | 0644 |
|
| DoCmd.xba | File | 115.52 KB | 0644 |
|
| Event.xba | File | 21.71 KB | 0644 |
|
| Field.xba | File | 38.54 KB | 0644 |
|
| Form.xba | File | 48.02 KB | 0644 |
|
| L10N.xba | File | 51.39 KB | 0644 |
|
| Methods.xba | File | 11.58 KB | 0644 |
|
| Module.xba | File | 29.72 KB | 0644 |
|
| OptionGroup.xba | File | 12.76 KB | 0644 |
|
| PropertiesGet.xba | File | 64.05 KB | 0644 |
|
| PropertiesSet.xba | File | 36.19 KB | 0644 |
|
| Property.xba | File | 6.63 KB | 0644 |
|
| Python.xba | File | 27.26 KB | 0644 |
|
| Recordset.xba | File | 44.9 KB | 0644 |
|
| Root_.xba | File | 12.55 KB | 0644 |
|
| SubForm.xba | File | 33.2 KB | 0644 |
|
| TempVar.xba | File | 8.19 KB | 0644 |
|
| Test.xba | File | 406 B | 0644 |
|
| Trace.xba | File | 17.6 KB | 0644 |
|
| UtilProperty.xba | File | 14.66 KB | 0644 |
|
| Utils.xba | File | 53.84 KB | 0644 |
|
| _License.xba | File | 1.48 KB | 0644 |
|
| acConstants.xba | File | 14.11 KB | 0644 |
|
| dialog.xlb | File | 398 B | 0644 |
|
| dlgFormat.xdl | File | 1.64 KB | 0644 |
|
| dlgTrace.xdl | File | 3.77 KB | 0644 |
|
| script.xlb | File | 1.58 KB | 0644 |
|