1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE script:module PUBLIC
"-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
3 <script:module xmlns:
script=
"http://openoffice.org/2000/script" script:
name=
"PropertiesGet" script:
language=
"StarBasic">
4 REM =======================================================================================================================
5 REM === The Access2Base library is a part of the LibreOffice project. ===
6 REM === Full documentation is available on http://www.access2base.com ===
7 REM =======================================================================================================================
11 REM -----------------------------------------------------------------------------------------------------------------------
12 Public Function getAbsolutePosition(Optional pvObject As Variant) As Boolean
13 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getAbsolutePosition
")
14 getAbsolutePosition = PropertiesGet._getProperty(pvObject,
"AbsolutePosition
")
15 End Function
' getAbsolutePosition
17 REM -----------------------------------------------------------------------------------------------------------------------
18 Public Function getAllowAdditions(Optional pvObject As Variant) As Boolean
19 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getAllowAdditions
")
20 getAllowAdditions = PropertiesGet._getProperty(pvObject,
"AllowAdditions
")
21 End Function
' getAllowAdditions
23 REM -----------------------------------------------------------------------------------------------------------------------
24 Public Function getAllowDeletions(Optional pvObject As Variant) As Boolean
25 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getAllowDeletions
")
26 getAllowDeletions = PropertiesGet._getProperty(pvObject,
"AllowDeletions
")
27 End Function
' getAllowDeletions
29 REM -----------------------------------------------------------------------------------------------------------------------
30 Public Function getAllowEdits(Optional pvObject As Variant) As Boolean
31 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getAllowEdits
")
32 getAllowEdits = PropertiesGet._getProperty(pvObject,
"AllowEdits
")
33 End Function
' getAllowEdits
35 REM -----------------------------------------------------------------------------------------------------------------------
36 Public Function getBackColor(Optional pvObject As Variant) As Variant
37 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getBackColor
")
38 getBackColor = PropertiesGet._getProperty(pvObject,
"BackColor
")
39 End Function
' getBackColor
41 REM -----------------------------------------------------------------------------------------------------------------------
42 Public Function getBeginGroup(Optional pvObject As Variant) As Variant
43 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getBeginGroup
")
44 getBeginGroup = PropertiesGet._getProperty(pvObject,
"BeginGroup
")
45 End Function
' getBeginGroup
47 REM -----------------------------------------------------------------------------------------------------------------------
48 Public Function getBOF(Optional pvObject As Variant) As Variant
49 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getBOF
")
50 getBOF = PropertiesGet._getProperty(pvObject,
"BOF
")
51 End Function
' getBOF
53 REM -----------------------------------------------------------------------------------------------------------------------
54 Public Function getBookmark(Optional pvObject As Variant) As Variant
55 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getBookmark
")
56 getBookmark = PropertiesGet._getProperty(pvObject,
"Bookmark
")
57 End Function
' getBookmark
59 REM -----------------------------------------------------------------------------------------------------------------------
60 Public Function getBookmarkable(Optional pvObject As Variant) As Variant
61 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getBookmarkable
")
62 getBookmarkable = PropertiesGet._getProperty(pvObject,
"Bookmarkable
")
63 End Function
' getBookmarkable
65 REM -----------------------------------------------------------------------------------------------------------------------
66 Public Function getBorderColor(Optional pvObject As Variant) As Variant
67 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getBorderColor
")
68 getBorderColor = PropertiesGet._getProperty(pvObject,
"BorderColor
")
69 End Function
' getBorderColor
71 REM -----------------------------------------------------------------------------------------------------------------------
72 Public Function getBorderStyle(Optional pvObject As Variant) As Variant
73 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getBorderStyle
")
74 getBorderStyle = PropertiesGet._getProperty(pvObject,
"BorderStyle
")
75 End Function
' getBorderStyle
77 REM -----------------------------------------------------------------------------------------------------------------------
78 Public Function getBuiltIn(Optional pvObject As Variant) As Boolean
79 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getBuiltIn
")
80 getBuiltIn = PropertiesGet._getProperty(pvObject,
"BuiltIn
")
81 End Function
' getBuiltIn
83 REM -----------------------------------------------------------------------------------------------------------------------
84 Public Function getButtonLeft(Optional pvObject As Variant) As Boolean
85 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getButtonLeft
")
86 getButtonLeft = PropertiesGet._getProperty(pvObject,
"ButtonLeft
")
87 End Function
' getButtonLeft
89 REM -----------------------------------------------------------------------------------------------------------------------
90 Public Function getButtonMiddle(Optional pvObject As Variant) As Boolean
91 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getButtonMiddle
")
92 getButtonMiddle = PropertiesGet._getProperty(pvObject,
"ButtonMiddle
")
93 End Function
' getButtonMiddle
95 REM -----------------------------------------------------------------------------------------------------------------------
96 Public Function getButtonRight(Optional pvObject As Variant) As Boolean
97 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getButtonRight
")
98 getButtonRight = PropertiesGet._getProperty(pvObject,
"ButtonRight
")
99 End Function
' getButtonRight
101 REM -----------------------------------------------------------------------------------------------------------------------
102 Public Function getCancel(Optional pvObject As Variant) As Variant
103 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getCancel
")
104 getCancel = PropertiesGet._getProperty(pvObject,
"Cancel
")
105 End Function
' getCancel
107 REM -----------------------------------------------------------------------------------------------------------------------
108 Public Function getCaption(Optional pvObject As Variant) As Variant
109 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getCaption
")
110 getCaption = PropertiesGet._getProperty(pvObject,
"Caption
")
111 End Function
' getCaption
113 REM -----------------------------------------------------------------------------------------------------------------------
114 Public Function getClickCount(Optional pvObject As Variant) As Long
115 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getClickCount
")
116 getClickCount = PropertiesGet._getProperty(pvObject,
"ClickCount
")
117 End Function
' getClickCount
119 REM -----------------------------------------------------------------------------------------------------------------------
120 Public Function getContextShortcut(Optional pvObject As Variant) As String
121 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getContextShortcut
")
122 getContextShortcut = PropertiesGet._getProperty(pvObject,
"ContextShortcut
")
123 End Function
' getContextShortcut
125 REM -----------------------------------------------------------------------------------------------------------------------
126 Public Function getControlSource(Optional pvObject As Variant) As Variant
127 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getControlSource
")
128 getControlSource = PropertiesGet._getProperty(pvObject,
"ControlSource
")
129 End Function
' getControlSource
131 REM -----------------------------------------------------------------------------------------------------------------------
132 Public Function getControlTipText(Optional pvObject As Variant) As Variant
133 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getControlTipText
")
134 getControlTipText = PropertiesGet._getProperty(pvObject,
"ControlTipText
")
135 End Function
' getControlTipText
137 REM -----------------------------------------------------------------------------------------------------------------------
138 Public Function getControlType(Optional pvObject As Variant) As Integer
139 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getControlType
")
140 getControlType = PropertiesGet._getProperty(pvObject,
"ControlType
")
141 End Function
' getControlType
143 REM -----------------------------------------------------------------------------------------------------------------------
144 Public Function getCount(Optional pvObject As Variant) As Integer
145 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getCount
")
146 getCount = PropertiesGet._getProperty(pvObject,
"Count
")
147 End Function
' getCount
149 REM -----------------------------------------------------------------------------------------------------------------------
150 Public Function getCurrentRecord(Optional pvObject As Variant) As Variant
151 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getCurrentRecord
")
152 getCurrentRecord = PropertiesGet._getProperty(pvObject,
"CurrentRecord
")
153 End Function
' getCurrentRecord
155 REM -----------------------------------------------------------------------------------------------------------------------
156 Public Function getDataType(Optional pvObject As Variant) As Variant
157 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getDataType
")
158 getDataType = PropertiesGet._getProperty(pvObject,
"DataType
")
159 End Function
' getDataType
161 REM -----------------------------------------------------------------------------------------------------------------------
162 Public Function getDbType(Optional pvObject As Variant) As Variant
163 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getDbType
")
164 getDbType = PropertiesGet._getProperty(pvObject,
"DbType
")
165 End Function
' getDbType
167 REM -----------------------------------------------------------------------------------------------------------------------
168 Public Function getDefault(Optional pvObject As Variant) As Variant
169 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getDefault
")
170 getDefault = PropertiesGet._getProperty(pvObject,
"Default
")
171 End Function
' getDefault
173 REM -----------------------------------------------------------------------------------------------------------------------
174 Public Function getDefaultValue(Optional pvObject As Variant) As Variant
175 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getDefaultValue
")
176 getDefaultValue = PropertiesGet._getProperty(pvObject,
"DefaultValue
")
177 End Function
' getDefaultValue
179 REM -----------------------------------------------------------------------------------------------------------------------
180 Public Function getDescription(Optional pvObject As Variant) As Variant
181 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getDescription
")
182 getDescription = PropertiesGet._getProperty(pvObject,
"Description
")
183 End Function
' getDescription
185 REM -----------------------------------------------------------------------------------------------------------------------
186 Public Function getEditMode(Optional pvObject As Variant) As Variant
187 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getEditMode
")
188 getEditMode = PropertiesGet._getProperty(pvObject,
"EditMode
")
189 End Function
' getEditMode
191 REM -----------------------------------------------------------------------------------------------------------------------
192 Public Function getEnabled(Optional pvObject As Variant) As Variant
193 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getEnabled
")
194 getEnabled = PropertiesGet._getProperty(pvObject,
"Enabled
")
195 End Function
' getEnabled
197 REM -----------------------------------------------------------------------------------------------------------------------
198 Public Function getEOF(Optional pvObject As Variant) As Variant
199 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getEOF
")
200 getEOF = PropertiesGet._getProperty(pvObject,
"EOF
")
201 End Function
' getEOF
203 REM -----------------------------------------------------------------------------------------------------------------------
204 Public Function getEventName(Optional pvObject As Variant) As String
205 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getEventName
")
206 getEventName = PropertiesGet._getProperty(pvObject,
"EventName
")
207 End Function
' getEventName
209 REM -----------------------------------------------------------------------------------------------------------------------
210 Public Function getEventType(Optional pvObject As Variant) As String
211 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getEventType
")
212 getEventType = PropertiesGet._getProperty(pvObject,
"EventType
")
213 End Function
' getEventType
215 REM -----------------------------------------------------------------------------------------------------------------------
216 Public Function getFieldSize(Optional pvObject As Variant) As Variant
217 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFieldSize
")
218 getFieldSize = PropertiesGet._getProperty(pvObject,
"FieldSize
")
219 End Function
' getFieldSize
221 REM -----------------------------------------------------------------------------------------------------------------------
222 Public Function getFilter(Optional pvObject As Variant) As String
223 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFilter
")
224 getFilter = PropertiesGet._getProperty(pvObject,
"Filter
")
225 End Function
' getFilter
227 REM -----------------------------------------------------------------------------------------------------------------------
228 Public Function getFilterOn(Optional pvObject As Variant) As Boolean
229 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFilterOn
")
230 getFilterOn = PropertiesGet._getProperty(pvObject,
"FilterOn
")
231 End Function
' getFilterOn
233 REM -----------------------------------------------------------------------------------------------------------------------
234 Public Function getFocusChangeTemporary(Optional pvObject As Variant) As Boolean
235 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFocusChangeTemporary
")
236 getFocusChangeTemporary = PropertiesGet._getProperty(pvObject,
"FocusChangeTemporary
")
237 End Function
' getFocusChangeTemporary
239 REM -----------------------------------------------------------------------------------------------------------------------
240 Public Function getFontBold(Optional pvObject As Variant) As Variant
241 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFontBold
")
242 getFontBold = PropertiesGet._getProperty(pvObject,
"FontBold
")
243 End Function
' getFontBold
245 REM -----------------------------------------------------------------------------------------------------------------------
246 Public Function getFontItalic(Optional pvObject As Variant) As Variant
247 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFontItalic
")
248 getFontItalic = PropertiesGet._getProperty(pvObject,
"FontItalic
")
249 End Function
' getFontItalic
251 REM -----------------------------------------------------------------------------------------------------------------------
252 Public Function getFontName(Optional pvObject As Variant) As Variant
253 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFontName
")
254 getFontName = PropertiesGet._getProperty(pvObject,
"FontName
")
255 End Function
' getFontName
257 REM -----------------------------------------------------------------------------------------------------------------------
258 Public Function getFontSize(Optional pvObject As Variant) As Variant
259 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFontSize
")
260 getFontSize = PropertiesGet._getProperty(pvObject,
"FontSize
")
261 End Function
' getFontSize
263 REM -----------------------------------------------------------------------------------------------------------------------
264 Public Function getFontUnderline(Optional pvObject As Variant) As Variant
265 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFontUnderline
")
266 getFontUnderline = PropertiesGet._getProperty(pvObject,
"FontUnderline
")
267 End Function
' getFontUnderline
269 REM -----------------------------------------------------------------------------------------------------------------------
270 Public Function getFontWeight(Optional pvObject As Variant) As Variant
271 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFontWeight
")
272 getFontWeight = PropertiesGet._getProperty(pvObject,
"FontWeight
")
273 End Function
' getFontWeight
275 REM -----------------------------------------------------------------------------------------------------------------------
276 Public Function getForm(Optional pvObject As Variant) As Variant
' Return Subform pseudo
277 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getForm
")
278 getForm = PropertiesGet._getProperty(pvObject,
"Form
")
279 End Function
' getForm
281 REM -----------------------------------------------------------------------------------------------------------------------
282 Public Function getFormat(Optional pvObject As Variant) As Variant
283 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getFormat
")
284 getFormat = PropertiesGet._getProperty(pvObject,
"Format
")
285 End Function
' getFormat
287 REM -----------------------------------------------------------------------------------------------------------------------
288 Public Function getHeight(Optional pvObject As Variant) As Long
289 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getHeight
")
290 getHeight = PropertiesGet._getProperty(pvObject,
"Height
")
291 End Function
' getHeight
293 REM -----------------------------------------------------------------------------------------------------------------------
294 Public Function getForeColor(Optional pvObject As Variant) As Variant
295 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getForeColor
")
296 getForeColor = PropertiesGet._getProperty(pvObject,
"ForeColor
")
297 End Function
' getForeColor
299 REM -----------------------------------------------------------------------------------------------------------------------
300 Public Function getIsLoaded(Optional pvObject As Variant) As Boolean
301 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getIsLoaded
")
302 getIsLoaded = PropertiesGet._getProperty(pvObject,
"IsLoaded
")
303 End Function
' getIsLoaded
305 REM -----------------------------------------------------------------------------------------------------------------------
306 Public Function getItemData(Optional pvObject As Variant, ByVal Optional pvIndex As Variant) As Variant
307 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getItemData
")
308 If IsMissing(pvIndex) Then
309 getItemData = PropertiesGet._getProperty(pvObject,
"ItemData
")
311 getItemData = PropertiesGet._getProperty(pvObject,
"ItemData
", pvIndex)
313 End Function
' getItemData
315 REM -----------------------------------------------------------------------------------------------------------------------
316 Public Function getKeyAlt(Optional pvObject As Variant) As Boolean
317 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getKeyAlt
")
318 getKeyAlt = PropertiesGet._getProperty(pvObject,
"KeyAlt
")
319 End Function
' getKeyAlt
321 REM -----------------------------------------------------------------------------------------------------------------------
322 Public Function getKeyChar(Optional pvObject As Variant) As String
323 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getKeyChar
")
324 getKeyChar = PropertiesGet._getProperty(pvObject,
"KeyChar
")
325 End Function
' getKeyChar
327 REM -----------------------------------------------------------------------------------------------------------------------
328 Public Function getKeyCode(Optional pvObject As Variant) As Integer
329 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getKeyCode
")
330 getKeyCode = PropertiesGet._getProperty(pvObject,
"KeyCode
")
331 End Function
' getKeyCode
333 REM -----------------------------------------------------------------------------------------------------------------------
334 Public Function getKeyCtrl(Optional pvObject As Variant) As Boolean
335 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getKeyCtrl
")
336 getKeyCtrl = PropertiesGet._getProperty(pvObject,
"KeyCtrl
")
337 End Function
' getKeyCtrl
339 REM -----------------------------------------------------------------------------------------------------------------------
340 Public Function getKeyFunction(Optional pvObject As Variant) As Integer
341 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getKeyFunction
")
342 getKeyFunction = PropertiesGet._getProperty(pvObject,
"KeyFunction
")
343 End Function
' getKeyFunction
345 REM -----------------------------------------------------------------------------------------------------------------------
346 Public Function getKeyShift(pvObject As Variant) As Boolean
347 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getKeyShift
")
348 getKeyShift = PropertiesGet._getProperty(pvObject,
"KeyShift
")
349 End Function
' getKeyShift
351 REM -----------------------------------------------------------------------------------------------------------------------
352 Public Function getLinkChildFields(Optional pvObject As Variant, ByVal Optional pvIndex As Variant) As Variant
353 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getLinkChildFields
")
354 If IsMissing(pvObject) Then
355 getLinkChildFields = PropertiesGet._getProperty(pvObject,
"LinkChildFields
")
357 getLinkChildFields = PropertiesGet._getProperty(pvObject,
"LinkChildFields
", pvIndex)
359 End Function
' getLinkChildFields
361 REM -----------------------------------------------------------------------------------------------------------------------
362 Public Function getLinkMasterFields(Optional pvObject As Variant, ByVal Optional pvIndex As Variant) As Variant
363 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getLinkMasterFields
")
364 If IsMissing(pvIndex) Then
365 getLinkMasterFields = PropertiesGet._getProperty(pvObject,
"LinkMasterFields
")
367 getLinkMasterFields = PropertiesGet._getProperty(pvObject,
"LinkMasterFields
", pvIndex)
369 End Function
' getLinkMasterFields
371 REM -----------------------------------------------------------------------------------------------------------------------
372 Public Function getListCount(Optional pvObject As Variant) As Variant
373 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getListCount
")
374 getListCount = PropertiesGet._getProperty(pvObject,
"ListCount
")
375 End Function
' getListCount
377 REM -----------------------------------------------------------------------------------------------------------------------
378 Public Function getListIndex(Optional pvObject As Variant) As Variant
379 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getListIndex
")
380 getListIndex = PropertiesGet._getProperty(pvObject,
"ListIndex
")
381 End Function
' getListIndex
383 REM -----------------------------------------------------------------------------------------------------------------------
384 Public Function getLocked(Optional pvObject As Variant) As Variant
385 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getLocked
")
386 getLocked = PropertiesGet._getProperty(pvObject,
"Locked
")
387 End Function
' getLocked
389 REM -----------------------------------------------------------------------------------------------------------------------
390 Public Function getMultiSelect(Optional pvObject As Variant) As Variant
391 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getMultiSelect
")
392 getMultiSelect = PropertiesGet._getProperty(pvObject,
"MultiSelect
")
393 End Function
' getMultiSelect
395 REM -----------------------------------------------------------------------------------------------------------------------
396 Public Function getName(Optional pvObject As Variant) As String
397 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getName
")
398 getName = PropertiesGet._getProperty(pvObject,
"Name
")
399 End Function
' getName
401 REM -----------------------------------------------------------------------------------------------------------------------
402 Public Function getObjectType(Optional pvObject As Variant) As String
403 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getObjectType
")
404 getObjectType = PropertiesGet._getProperty(pvObject,
"ObjectType
")
405 End Function
' getObjectType
407 REM -----------------------------------------------------------------------------------------------------------------------
408 Public Function getOpenArgs(Optional pvObject As Variant) As String
409 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getOpenArgs
")
410 getOpenArgs = PropertiesGet._getProperty(pvObject,
"OpenArgs
")
411 End Function
' getOpenArgs
413 REM -----------------------------------------------------------------------------------------------------------------------
414 Public Function getOptionGroup(Optional pvObject As Variant, pvName As variant) As Variant
415 ' Return an OptionGroup object based on its name
417 Utils._SetCalledSub(
"getOptionGroup
")
418 If IsMissing(pvObject) Or IsMissing(pvName) Then Call _TraceArguments()
419 If _ErrorHandler() Then On Local Error Goto Error_Function
421 If Not Utils._CheckArgument(pvObject,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
422 If Not Utils._CheckArgument(pvName,
2, vbString) Then Goto Exit_Function
424 getOptionGroup = pvObject.OptionGroup(pvName)
427 Utils._ResetCalledSub(
"getOptionGroup
")
430 TraceError(TRACEABORT, Err,
"getOptionGroup
", Erl)
432 End Function
' getOptionGroup V0.9
.0
434 REM -----------------------------------------------------------------------------------------------------------------------
435 Public Function getOptionValue(Optional pvObject As Variant) As String
436 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getOptionValue
")
437 getOptionValue = PropertiesGet._getProperty(pvObject,
"OptionValue
")
438 End Function
' getOptionValue
440 REM -----------------------------------------------------------------------------------------------------------------------
441 Public Function getOrderBy(Optional pvObject As Variant) As String
442 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getOrderBy
")
443 getOrderBy = PropertiesGet._getProperty(pvObject,
"OrderBy
")
444 End Function
' getOrderBy
446 REM -----------------------------------------------------------------------------------------------------------------------
447 Public Function getOrderByOn(Optional pvObject As Variant) As Boolean
448 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getOrderByOn
")
449 getOrderByOn = PropertiesGet._getProperty(pvObject,
"OrderByOn
")
450 End Function
' getOrderByOn
452 REM -----------------------------------------------------------------------------------------------------------------------
453 Public Function getPage(Optional pvObject As Variant) As String
454 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getPage
")
455 getPage = PropertiesGet._getProperty(pvObject,
"Page
")
456 End Function
' getPage V0.9
.1
458 REM -----------------------------------------------------------------------------------------------------------------------
459 Public Function getParent(Optional pvObject As Variant) As String
460 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getParent
")
461 getParent = PropertiesGet._getProperty(pvObject,
"Parent
")
462 End Function
' getParent V0.9
.0
464 REM -----------------------------------------------------------------------------------------------------------------------
465 Public Function getProperty(Optional pvItem As Variant, Optional ByVal pvProperty As Variant, ByVal Optional pvIndex As Variant) As Variant
466 ' Return property value of object pvItem, and psProperty property name
467 Utils._SetCalledSub(
"getProperty
")
468 If IsMissing(pvItem) Then Call _TraceArguments()
469 If IsMissing(pvProperty) Then Call _TraceArguments()
470 If IsMissing(pvIndex) Then getProperty = PropertiesGet._getProperty(pvItem, pvProperty) Else getProperty = PropertiesGet._getProperty(pvItem, pvProperty, pvIndex)
471 Utils._ResetCalledSub(
"getProperty
")
472 End Function
' getProperty
474 REM -----------------------------------------------------------------------------------------------------------------------
475 Public Function getRecommendation(Optional pvObject As Variant) As Variant
476 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getRecommendation
")
477 getRecommendation = PropertiesGet._getProperty(pvObject,
"Recommendation
")
478 End Function
' getRecommendation
480 REM -----------------------------------------------------------------------------------------------------------------------
481 Public Function getRecordCount(Optional pvObject As Variant) As Variant
482 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getRecordCount
")
483 getRecordCount = PropertiesGet._getProperty(pvObject,
"RecordCount
")
484 End Function
' getRecordCount
486 REM -----------------------------------------------------------------------------------------------------------------------
487 Public Function getRecordset(Optional pvObject As Variant) As String
488 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getRecordset
")
489 getRecordset = PropertiesGet._getProperty(pvObject,
"Recordset
")
490 End Function
' getRecordset V0.9
.5
492 REM -----------------------------------------------------------------------------------------------------------------------
493 Public Function getRecordSource(Optional pvObject As Variant) As Variant
494 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getRecordSource
")
495 getRecordSource = PropertiesGet._getProperty(pvObject,
"RecordSource
")
496 End Function
' getRecordSource
498 REM -----------------------------------------------------------------------------------------------------------------------
499 Public Function getRequired(Optional pvObject As Variant) As Variant
500 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getRequired
")
501 getRequired = PropertiesGet._getProperty(pvObject,
"Required
")
502 End Function
' getRequired
504 REM -----------------------------------------------------------------------------------------------------------------------
505 Public Function getRowChangeAction(Optional pvObject As Variant) As Variant
506 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getRowChangeAction
")
507 getRowChangeAction = PropertiesGet._getProperty(pvObject,
"RowChangeAction
")
508 End Function
' getRowChangeAction
510 REM -----------------------------------------------------------------------------------------------------------------------
511 Public Function getRowSource(Optional pvObject As Variant) As Variant
512 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getRowSource
")
513 getRowSource = PropertiesGet._getProperty(pvObject,
"RowSource
")
514 End Function
' getRowSource
516 REM -----------------------------------------------------------------------------------------------------------------------
517 Public Function getRowSourceType(Optional pvObject As Variant) As Variant
518 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getRowSourceType
")
519 getRowSourceType = PropertiesGet._getProperty(pvObject,
"RowSourceType
")
520 End Function
' getRowSourceType
522 REM -----------------------------------------------------------------------------------------------------------------------
523 Public Function getSelected(Optional pvObject As Variant, ByVal Optional pvIndex As Variant) As Variant
524 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getSelected
")
525 If IsMissing(pvIndex) Then
526 getSelected = PropertiesGet._getProperty(pvObject,
"Selected
")
528 getSelected = PropertiesGet._getProperty(pvObject,
"Selected
", pvIndex)
530 End Function
' getSelected
532 REM -----------------------------------------------------------------------------------------------------------------------
533 Public Function getSize(Optional pvObject As Variant) As Variant
534 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getSize
")
535 getSize = PropertiesGet._getProperty(pvObject,
"Size
")
536 End Function
' getSize
538 REM -----------------------------------------------------------------------------------------------------------------------
539 Public Function getSource(Optional pvObject As Variant) As String
540 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getSource
")
541 getSource = PropertiesGet._getProperty(pvObject,
"Source
")
542 End Function
' getSource V0.9
.0
544 REM -----------------------------------------------------------------------------------------------------------------------
545 Public Function getSourceField(Optional pvObject As Variant) As Variant
546 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getSourceField
")
547 getSourceField = PropertiesGet._getProperty(pvObject,
"SourceField
")
548 End Function
' getSourceField
550 REM -----------------------------------------------------------------------------------------------------------------------
551 Public Function getSourceTable(Optional pvObject As Variant) As Variant
552 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getSourceTable
")
553 getSourceTable = PropertiesGet._getProperty(pvObject,
"SourceTable
")
554 End Function
' getSourceTable
556 REM -----------------------------------------------------------------------------------------------------------------------
557 Public Function getSpecialEffect(Optional pvObject As Variant) As Variant
558 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getSpecialEffect
")
559 getSpecialEffect = PropertiesGet._getProperty(pvObject,
"SpecialEffect
")
560 End Function
' getSpecialEffect
562 REM -----------------------------------------------------------------------------------------------------------------------
563 Public Function getSubType(Optional pvObject As Variant) As Variant
564 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getSubType
")
565 getSubType = PropertiesGet._getProperty(pvObject,
"SubType
")
566 End Function
' getSubType
568 REM -----------------------------------------------------------------------------------------------------------------------
569 Public Function getSubComponentName(Optional pvObject As Variant) As Variant
570 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getSubComponentName
")
571 getSubComponentName = PropertiesGet._getProperty(pvObject,
"SubComponentName
")
572 End Function
' getSubComponentName
574 REM -----------------------------------------------------------------------------------------------------------------------
575 Public Function getSubComponentType(Optional pvObject As Variant) As Variant
576 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getSubComponentType
")
577 getSubComponentType = PropertiesGet._getProperty(pvObject,
"SubComponentType
")
578 End Function
' getSubComponentType
580 REM -----------------------------------------------------------------------------------------------------------------------
581 Public Function getTabIndex(Optional pvObject As Variant) As Variant
582 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getTabIndex
")
583 getTabIndex = PropertiesGet._getProperty(pvObject,
"TabIndex
")
584 End Function
' getTabIndex
586 REM -----------------------------------------------------------------------------------------------------------------------
587 Public Function getTabStop(Optional pvObject As Variant) As Variant
588 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getTabStop
")
589 getTabStop = PropertiesGet._getProperty(pvObject,
"TabStop
")
590 End Function
' getTabStop
592 REM -----------------------------------------------------------------------------------------------------------------------
593 Public Function getTag(Optional pvObject As Variant) As Variant
594 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getTag
")
595 getTag = PropertiesGet._getProperty(pvObject,
"Tag
")
596 End Function
' getTag
598 REM -----------------------------------------------------------------------------------------------------------------------
599 Public Function getText(Optional pvObject As Variant) As Variant
600 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getText
")
601 getText = PropertiesGet._getProperty(pvObject,
"Text
")
602 End Function
' getText
604 REM -----------------------------------------------------------------------------------------------------------------------
605 Public Function getTextAlign(Optional pvObject As Variant) As Variant
606 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getTextAlign
")
607 getTextAlign = PropertiesGet._getProperty(pvObject,
"TextAlign
")
608 End Function
' getTextAlign
610 REM -----------------------------------------------------------------------------------------------------------------------
611 Public Function getTooltipText(Optional pvObject As Variant) As Variant
612 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getTooltipText
")
613 getTooltipText = PropertiesGet._getProperty(pvObject,
"TooltipText
")
614 End Function
' getTooltipText
616 REM -----------------------------------------------------------------------------------------------------------------------
617 Public Function getTripleState(Optional pvObject As Variant) As Variant
618 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getTripleState
")
619 getTripleState = PropertiesGet._getProperty(pvObject,
"TripleState
")
620 End Function
' getTripleState
622 REM -----------------------------------------------------------------------------------------------------------------------
623 Public Function getTypeName(Optional pvObject As Variant) As Variant
624 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getTypeName
")
625 getTypeName = PropertiesGet._getProperty(pvObject,
"TypeName
")
626 End Function
' getTypeName
628 REM -----------------------------------------------------------------------------------------------------------------------
629 Public Function getVisible(Optional pvObject As Variant) As Variant
630 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getVisible
")
631 getVisible = PropertiesGet._getProperty(pvObject,
"Visible
")
632 End Function
' getVisible
634 REM -----------------------------------------------------------------------------------------------------------------------
635 Public Function getWidth(Optional pvObject As Variant) As Long
636 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getWdth
")
637 getWidth = PropertiesGet._getProperty(pvObject,
"Width
")
638 End Function
' getWidth
640 REM -----------------------------------------------------------------------------------------------------------------------
641 Public Function getXPos(Optional pvObject As Variant) As Long
642 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getXPos
")
643 getXPos = PropertiesGet._getProperty(pvObject,
"XPos
")
644 End Function
' getXPos
646 REM -----------------------------------------------------------------------------------------------------------------------
647 Public Function getYPos(Optional pvObject As Variant) As Long
648 If IsMissing(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments(
"getYPos
")
649 getYPos = PropertiesGet._getProperty(pvObject,
"YPos
")
650 End Function
' getYPos
652 REM -----------------------------------------------------------------------------------------------------------------------
653 REM --- PRIVATE FUNCTIONS ---
654 REM -----------------------------------------------------------------------------------------------------------------------
656 Public Function _getProperty(pvItem As Variant, ByVal psProperty As String, ByVal Optional pvIndex As Variant) As Variant
657 ' Return property value of the psProperty property name within object pvItem
659 If _ErrorHandler() Then On Local Error Goto Error_Function
660 Utils._SetCalledSub(
"get
" & psProperty)
661 _getProperty = Nothing
663 'pvItem must be an object and have the requested property
664 If Not Utils._CheckArgument(pvItem,
1, vbObject) Then Goto Exit_Function
665 If Not PropertiesGet._hasProperty(pvItem._Type, pvItem._PropertiesList(), psProperty) Then Goto Trace_Error
666 'Check Index argument
667 If Not IsMissing(pvIndex) Then
668 If Not Utils._CheckArgument(pvIndex,
3, Utils._AddNumeric()) Then Goto Exit_Function
671 Select Case UCase(psProperty)
672 Case UCase(
"AbsolutePosition
")
673 If Not Utils._CheckArgument(pvItem,
1, OBJRECORDSET) Then Goto Exit_Function
674 _getProperty = pvItem.AbsolutePosition
675 Case UCase(
"AllowAdditions
")
676 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
677 _getProperty = pvItem.AllowAdditions
678 Case UCase(
"AllowDeletions
")
679 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
680 _getProperty = pvItem.AllowDeletions
681 Case UCase(
"AllowEdits
")
682 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
683 _getProperty = pvItem.AllowEdits
684 Case UCase(
"BackColor
")
685 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
686 _getProperty = pvItem.BackColor
687 Case UCase(
"BeginGroup
")
688 If Not Utils._CheckArgument(pvItem,
1, OBJCOMMANDBARCONTROL) Then Goto Exit_Function
689 _getProperty = pvItem.BeginGroup
690 Case UCase(
"BOF
")
691 If Not Utils._CheckArgument(pvItem,
1, OBJRECORDSET) Then Goto Exit_Function
692 _getProperty = pvItem.BOF
693 Case UCase(
"Bookmark
")
694 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJRECORDSET)) Then Goto Exit_Function
695 _getProperty = pvItem.Bookmark
696 Case UCase(
"Bookmarkable
")
697 If Not Utils._CheckArgument(pvItem,
1, OBJRECORDSET) Then Goto Exit_Function
698 _getProperty = pvItem.Bookmarkable
699 Case UCase(
"BorderColor
")
700 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
701 _getProperty = pvItem.BorderColor
702 Case UCase(
"BorderStyle
")
703 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
704 _getProperty = pvItem.BorderStyle
705 Case UCase(
"BuiltIn
")
706 If Not Utils._CheckArgument(pvItem,
1, Array(OBJCOMMANDBAR, OBJCOMMANDBARCONTROL)) Then Goto Exit_Function
707 _getProperty = pvItem.BuiltIn
708 Case UCase(
"ButtonLeft
")
709 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
710 _getProperty = pvItem.ButtonLeft
711 Case UCase(
"ButtonMiddle
")
712 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
713 _getProperty = pvItem.ButtonMiddle
714 Case UCase(
"ButtonRight
")
715 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
716 _getProperty = pvItem.ButtonRight
717 Case UCase(
"Cancel
")
718 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
719 _getProperty = pvItem.Cancel
720 Case UCase(
"Caption
")
721 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJDIALOG, OBJCONTROL, OBJCOMMANDBARCONTROL)) Then Goto Exit_Function
722 _getProperty = pvItem.Caption
723 Case UCase(
"ClickCount
")
724 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
725 _getProperty = pvItem.ClickCount
726 Case UCase(
"ContextShortcut
")
727 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
728 _getProperty = pvItem.ContextShortcut
729 Case UCase(
"ControlSource
")
730 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
731 _getProperty = pvItem.ControlSource
732 Case UCase(
"ControlTipText
")
733 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
734 _getProperty = pvItem.ControlTipText
735 Case UCase(
"ControlType
")
736 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
737 _getProperty = pvItem.ControlType
738 Case UCase(
"Count
")
739 If Not Utils._CheckArgument(pvItem,
1, Array(OBJCOLLECTION,OBJOPTIONGROUP)) Then Goto Exit_Function
740 _getProperty = pvItem.Count
741 Case UCase(
"CurrentRecord
")
742 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
743 _getProperty = pvItem.CurrentRecord
744 Case UCase(
"DataType
")
745 If Not Utils._CheckArgument(pvItem,
1, OBJFIELD) Then Goto Exit_Function
746 _getProperty = pvItem.DataType
747 Case UCase(
"DbType
")
748 If Not Utils._CheckArgument(pvItem,
1, OBJFIELD) Then Goto Exit_Function
749 _getProperty = pvItem.DbType
750 Case UCase(
"Default
")
751 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
752 _getProperty = pvItem.Default
753 Case UCase(
"DefaultValue
")
754 If Not Utils._CheckArgument(pvItem,
1, Array(OBJCONTROL, OBJFIELD)) Then Goto Exit_Function
755 _getProperty = pvItem.DefaultValue
756 Case UCase(
"Description
")
757 If Not Utils._CheckArgument(pvItem,
1, OBJFIELD) Then Goto Exit_Function
758 _getProperty = pvItem.Description
759 Case UCase(
"EditMode
")
760 If Not Utils._CheckArgument(pvItem,
1, OBJRECORDSET) Then Goto Exit_Function
761 _getProperty = pvItem.EditMode
762 Case UCase(
"Enabled
")
763 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
764 _getProperty = pvItem.Enabled
765 Case UCase(
"EOF
")
766 If Not Utils._CheckArgument(pvItem,
1, OBJRECORDSET) Then Goto Exit_Function
767 _getProperty = pvItem.EOF
768 Case UCase(
"EventName
")
769 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
770 _getProperty = pvItem.EventName
771 Case UCase(
"EventType
")
772 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
773 _getProperty = pvItem.EventType
774 Case UCase(
"FieldSize
")
775 If Not Utils._CheckArgument(pvItem,
1, OBJFIELD) Then Goto Exit_Function
776 _getProperty = pvItem.FieldSize
777 Case UCase(
"Filter
")
778 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM, OBJRECORDSET)) Then Goto Exit_Function
779 _getProperty = pvItem.Filter
780 Case UCase(
"FilterOn
")
781 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
782 _getProperty = pvItem.FilterOn
783 Case UCase(
"FocusChangeTemporary
")
784 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
785 _getProperty = pvItem.FocusChangeTemporary
786 Case UCase(
"FontBold
")
787 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
788 _getProperty = pvItem.FontBold
789 Case UCase(
"FontItalic
")
790 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
791 _getProperty = pvItem.FontItalic
792 Case UCase(
"FontName
")
793 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
794 _getProperty = pvItem.FontName
795 Case UCase(
"FontSize
")
796 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
797 _getProperty = pvItem.FontSize
798 Case UCase(
"FontUnderline
")
799 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
800 _getProperty = pvItem.FontUnderline
801 Case UCase(
"FontWeight
")
802 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
803 _getProperty = pvItem.FontWeight
804 Case UCase(
"ForeColor
")
805 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
806 _getProperty = pvItem.ForeColor
807 Case UCase(
"Form
")
808 If Not Utils._CheckArgument(pvItem,
1, CTLSUBFORM) Then Goto Exit_Function
809 _getProperty = pvItem.Form
810 Case UCase(
"Format
")
811 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
812 _getProperty = pvItem.Format
813 Case UCase(
"Height
")
814 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJDIALOG)) Then Goto Exit_Function
815 _getProperty = pvItem.Height
816 Case UCase(
"Index
")
817 If Not Utils._CheckArgument(pvItem,
1, OBJCOMMANDBARCONTROL) Then Goto Exit_Function
818 _getProperty = pvItem.Index
819 Case UCase(
"IsLoaded
")
820 If Not Utils._CheckArgument(pvItem,
1, OBJFORM) Then Goto Exit_Function
821 _getProperty = pvItem.IsLoaded
822 Case UCase(
"ItemData
")
823 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
824 If IsMissing(pvIndex) Then _getProperty = pvItem.ItemData Else _getProperty = pvItem.ItemData(pvIndex)
825 Case UCase(
"KeyAlt
")
826 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
827 _getProperty = pvItem.KeyAlt
828 Case UCase(
"KeyChar
")
829 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
830 _getProperty = pvItem.KeyChar
831 Case UCase(
"KeyCode
")
832 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
833 _getProperty = pvItem.KeyCode
834 Case UCase(
"KeyCtrl
")
835 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
836 _getProperty = pvItem.KeyCtrl
837 Case UCase(
"KeyFunction
")
838 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
839 _getProperty = pvItem.KeyFunction
840 Case UCase(
"KeyShift
")
841 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
842 _getProperty = pvItem.KeyShift
843 Case UCase(
"LinkChildFields
")
844 If Not Utils._CheckArgument(pvItem,
1, OBJSUBFORM) Then Goto Exit_Function
845 If IsMissing(pvIndex) Then _getProperty = pvItem.LinkChildFields Else _getProperty = pvItem.LinkChildFields(pvIndex)
846 Case UCase(
"LinkMasterFields
")
847 If Not Utils._CheckArgument(pvItem,
1, OBJSUBFORM) Then Goto Exit_Function
848 If IsMissing(pvIndex) Then _getProperty = pvItem.LinkMasterFields Else _getProperty = pvItem.LinkMasterFields(pvIndex)
849 Case UCase(
"ListCount
")
850 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
851 _getProperty = pvItem.ListCount
852 Case UCase(
"ListIndex
")
853 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
854 _getProperty = pvItem.ListIndex
855 Case UCase(
"Locked
")
856 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
857 If IsNull(pvItem.Locked) Then Goto Trace_Error
858 _ge ExitProperty = pvItem.Locked
859 Case UCase(
"MultiSelect
")
860 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
861 _getProperty = pvItem.MultiSelect
862 Case UCase(
"Name
")
863 If Not Utils._CheckArgument(pvItem,
1, _
864 Array(OBJFORM, OBJSUBFORM, OBJCONTROL, OBJOPTIONGROUP, OBJPROPERTY, OBJDIALOG, OBJTABLEDEF, OBJRECORDSET, OBJFIELD, OBJTEMPVAR, OBJCOMMANDBAR) _
865 ) Then Goto Exit_Function
866 _getProperty = pvItem.Name
867 Case UCase(
"ObjectType
")
868 If Not Utils._CheckArgument(pvItem,
1, Array(OBJDATABASE, OBJCOLLECTION, OBJFORM, OBJDIALOG, OBJSUBFORM, OBJCONTROL _
869 , OBJEVENT, OBJOPTIONGROUP, OBJPROPERTY, OBJRECORDSET, OBJTABLEDEF, OBJFIELD, OBJTEMPVAR _
870 , OBJCOMMANDBAR, OBJCOMMANDBARCONTROL) _
871 ) Then Goto Exit_Function
872 _getProperty = pvItem.ObjectType
873 Case UCase(
"OnAction
")
874 If Not Utils._CheckArgument(pvItem,
1, OBJCOMMANDBARCONTROL) Then Goto Exit_Function
875 _getProperty = pvItem.OnAction
876 Case UCase(
"OpenArgs
")
877 If Not Utils._CheckArgument(pvItem,
1, OBJFORM) Then Goto Exit_Function
878 _getProperty = pvItem.OpenArgs
879 Case UCase(
"OptionValue
")
880 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
881 _getProperty = pvItem.OptionValue
882 Case UCase(
"OrderBy
")
883 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
884 _getProperty = pvItem.OrderBy
885 Case UCase(
"OrderByOn
")
886 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
887 _getProperty = pvItem.OrderByOn
888 Case UCase(
"Page
")
889 If Not Utils._CheckArgument(pvItem,
1, Array(OBJDIALOG, OBJCONTROL)) Then Goto Exit_Function
890 _getProperty = pvItem.Page
891 Case UCase(
"Parent
")
892 If Not Utils._CheckArgument(pvItem,
1, Array(OBJSUBFORM, OBJCONTROL, OBJCOMMANDBARCONTROL)) Then Goto Exit_Function
893 _getProperty = pvItem.Parent
894 Case UCase(
"Recommendation
")
895 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
896 _getProperty = pvItem.Recommendation
897 Case UCase(
"RecordCount
")
898 If Not Utils._CheckArgument(pvItem,
1, OBJRECORDSET) Then Goto Exit_Function
899 _getProperty = pvItem.RecordCount
900 Case UCase(
"Recordset
")
901 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
902 _getProperty = pvItem.Recordset
903 Case UCase(
"RecordSource
")
904 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJSUBFORM)) Then Goto Exit_Function
905 _getProperty = pvItem.RecordSource
906 Case UCase(
"Required
")
907 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
908 _getProperty = pvItem.Required
909 Case UCase(
"RowChangeAction
")
910 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
911 _getProperty = pvItem.RowChangeAction
912 Case UCase(
"RowSource
")
913 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
914 _getProperty = pvItem.RowSource
915 Case UCase(
"RowSourceType
")
916 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
917 _getProperty = pvItem.RowSourceType
918 Case UCase(
"Selected
")
919 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
920 If IsMissing(pvIndex) Then _getProperty = pvItem.Selected Else _getProperty = pvItem.Selected(pvIndex)
921 Case UCase(
"Size
")
922 If Not Utils._CheckArgument(pvItem,
1, OBJFIELD) Then Goto Exit_Function
923 _getProperty = pvItem.Size
924 Case UCase(
"Source
")
925 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
926 _getProperty = pvItem.Source
927 Case UCase(
"SourceTable
")
928 If Not Utils._CheckArgument(pvItem,
1, OBJFIELD) Then Goto Exit_Function
929 _getProperty = pvItem.SourceTable
930 Case UCase(
"SourceField
")
931 If Not Utils._CheckArgument(pvItem,
1, OBJFIELD) Then Goto Exit_Function
932 _getProperty = pvItem.SourceField
933 Case UCase(
"SpecialEffect
")
934 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
935 _getProperty = pvItem.SpecialEffect
936 Case UCase(
"SubComponentName
")
937 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
938 _getProperty = pvItem.SubComponentName
939 Case UCase(
"SubComponentType
")
940 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
941 _getProperty = pvItem.SubComponentType
942 Case UCase(
"SubType
")
943 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
944 _getProperty = pvItem.SubType
945 Case UCase(
"TabIndex
")
946 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
947 _getProperty = pvItem.TabIndex
948 Case UCase(
"TabStop
")
949 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
950 _getProperty = pvItem.TabStop
951 Case UCase(
"Tag
")
952 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
953 _getProperty = pvItem.Tag
954 Case UCase(
"Text
")
955 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
956 _getProperty = pvItem.Text
957 Case UCase(
"TextAlign
")
958 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
959 _getProperty = pvItem.TextAlign
960 Case UCase(
"TooltipText
")
961 If Not Utils._CheckArgument(pvItem,
1, OBJCOMMANDBARCONTROL) Then Goto Exit_Function
962 _getProperty = pvItem.TooltipText
963 Case UCase(
"TripleState
")
964 If Not Utils._CheckArgument(pvItem,
1, OBJCONTROL) Then Goto Exit_Function
965 _getProperty = pvItem.TripleState
966 Case UCase(
"TypeName
")
967 If Not Utils._CheckArgument(pvItem,
1, OBJFIELD) Then Goto Exit_Function
968 _getProperty = pvItem.TypeName
969 Case UCase(
"Value
")
970 If Not Utils._CheckArgument(pvItem,
1, Array(OBJCONTROL, OBJOPTIONGROUP, OBJPROPERTY, OBJFIELD, OBJTEMPVAR)) Then Goto Exit_Function
971 _getProperty = pvItem.Value
972 Case UCase(
"Visible
")
973 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJDIALOG, OBJCONTROL, OBJCOMMANDBAR, OBJCOMMANDBARCONTROL)) Then Goto Exit_Function
974 _getProperty = pvItem.Visible
975 Case UCase(
"Width
")
976 If Not Utils._CheckArgument(pvItem,
1, Array(OBJFORM, OBJDIALOG)) Then Goto Exit_Function
977 _getProperty = pvItem.Width
978 Case UCase(
"XPos
")
979 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
980 If IsNull(pvItem.XPos) Then Goto Trace_Error
981 _getProperty = pvItem.XPos
982 Case UCase(
"YPos
")
983 If Not Utils._CheckArgument(pvItem,
1, OBJEVENT) Then Goto Exit_Function
984 If IsNull(pvItem.YPos) Then Goto Trace_Error
985 _getProperty = pvItem.YPos
991 Utils._ResetCalledSub(
"get
" & psProperty)
994 TraceError(TRACEFATAL, ERRPROPERTY, Utils._CalledSub(),
0,
1, psProperty)
995 _getProperty = Nothing
998 TraceError(TRACEFATAL, ERRINDEXVALUE, Utils._CalledSub(),
0,
1, psProperty)
999 _getProperty = Nothing
1002 TraceError(TRACEABORT, Err,
"_getProperty
", Erl)
1003 _getProperty = Nothing
1005 End Function
' _getProperty V0.9
.1
1007 REM -----------------------------------------------------------------------------------------------------------------------
1008 Public Function _hasProperty(ByVal psObject As String, ByVal pvPropertiesList() As Variant, Optional ByVal pvProperty As Variant) As Boolean
1009 ' Return True if object has a valid property called pvProperty (case-insensitive comparison !)
1010 ' Generic hasProperty function called from all class modules
1012 Dim sObject As String
1013 sObject = Utils._PCase(psObject)
1014 Utils._SetCalledSub(sObject
& ".hasProperty
")
1015 If IsMissing(pvProperty) Then Call _TraceArguments()
1017 _hasProperty = False
1018 If Not Utils._CheckArgument(pvProperty,
1, vbString) Then Goto Exit_Function
1020 _hasProperty = Utils._InList(pvProperty, pvPropertiesList(), False, True)
1023 Utils._ResetCalledSub(sObject
& ".hasProperty
")
1025 End Function
' _hasProperty
1027 REM ------------------------------------------------------------------------------------------------------------------------
1028 Public Function _ParentObject(psShortcut As String) As Object
1029 ' Return parent object from shortcut as a string
1031 Dim sParent As String, vParent() As Variant, iBound As Integer
1032 vParent = Split(psShortcut,
"!
")
1033 iBound = UBound(vParent) -
1
1034 ReDim Preserve vParent(
0 To iBound)
' Remove last element
1035 sParent = Join(vParent,
"!
")
1037 'Remove
".Form
" if present
1038 Const cstForm =
".FORM
"
1039 Set _ParentObject = Nothing
1040 If Len(sParent)
> Len(cstForm) Then
1041 If UCase(Right(sParent, Len(cstForm))) = cstForm Then
1042 Set _ParentObject = getValue(sParent)
1044 Set _ParentObject = getObject(sParent)
1048 End Function
' _ParentObject V0.9
.0
1050 REM -----------------------------------------------------------------------------------------------------------------------
1051 Public Function _Properties(ByVal psObject As String _
1052 , ByRef pvParent As Object _
1053 , ByVal pvPropertiesList() As Variant _
1054 , ByVal Optional pvIndex As Variant _
1057 ' a Collection object if pvIndex absent
1058 ' a Property object otherwise
1059 ' Generic function called from Properties methods stored in classes
1061 Dim vProperties As Variant, oCounter As Object, opProperty As Object
1062 Dim iArgNr As Integer, iLen As Integer
1064 Utils._SetCalledSub(psObject
& ".Properties
")
1068 If IsMissing(pvIndex) Then
' Call without index argument prepares a Collection object
1069 Set oCounter = New Collect
1070 Set oCounter._This = oCounter
1071 oCounter._CollType = COLLPROPERTIES
1072 Set oCounter._Parent = pvParent
1073 oCounter._Count = UBound(pvPropertiesList) +
1
1074 Set vProperties = oCounter
1076 iLen = Len(psObject) +
1
1077 If Len(_A2B_.CalledSub)
> iLen Then
1078 If Left(_A2B_.CalledSub, iLen) = psObject
& ".
" Then iArgNr =
1 Else iArgNr =
2
1080 If Not Utils._CheckArgument(pvIndex, iArgNr, Utils._AddNumeric()) Then Goto Exit_Function
1081 If pvIndex
< LBound(pvPropertiesList) Or pvIndex
> UBound(pvPropertiesList) Then
1082 TraceError(TRACEFATAL, ERRCOLLECTION, Utils._CalledSub(),
0,
1)
1084 Set opProperty = New Property
1085 Set opProperty._This = opProperty
1086 opProperty._Name = pvPropertiesList(pvIndex)
1087 opProperty._Value = Null
1088 Set vProperties = opProperty
1093 Set _Properties = vProperties
1094 Utils._ResetCalledSub(psObject
& ".Properties
")
1096 End Function
' _Properties
1098 REM -----------------------------------------------------------------------------------------------------------------------
1099 Public Function _PropertiesList(pvObject As Variant) As Variant
1100 ' Return an array of strings containing the list of valid properties of pvObject
1102 Dim vProperties As Variant
1103 Dim vPropertiesList As Variant, bPropertiesList() As Boolean, sPropertiesList() As String
1104 Dim i As Integer, j As Integer, iCount As Integer
1106 Set vProperties = Nothing
1107 Select Case pvObject._Type
1108 Case OBJCOLLECTION, OBJPROPERTY, OBJFORM, OBJEVENT, OBJSUBFORM, OBJCONTROL, OBJOPTIONGROUP _
1109 , OBJDATABASE, OBJTABLEDEF, OBJQUERYDEF, OBJDIALOG, OBJFIELD, OBJRECORDSET, OBJTEMPVAR _
1110 , OBJCOMMANDBAR, OBJCOMMANDBARCONTROL
1111 vPropertiesList = pvObject._PropertiesList()
1116 Set _PropertiesList = vPropertiesList
1118 End Function
' PropertiesList V0.9
.0