-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththinBasic_MSXML2_ServerXMLHTTP.Inc
More file actions
613 lines (528 loc) · 25.3 KB
/
thinBasic_MSXML2_ServerXMLHTTP.Inc
File metadata and controls
613 lines (528 loc) · 25.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
'----------------------------------------------------------------------------
' Class cMsxml2_XMLHTTP implements Microsoft XMLHTTP class
'----------------------------------------------------------------------------
Class cMsxml2_ServerXMLHTTP
'----------------------------------------------------------------------------
'---Class Private variables
'----------------------------------------------------------------------------
Instance pHTTPServer As IServerXMLHTTPRequest2
Instance vResult As Variant
Instance lResult As Long
'----------------------------------------------------------------------------
'---Define here any Class Method (if needed)
'---Class methods are visible only from inside the class
'---so they can be called only from inside other methods.
'----------------------------------------------------------------------------
Class Method Create()
pHTTPServer = ANYCOM $PROGID_MSXML2_ServerXMLHTTP600
If not IsObject(pHTTPServer) Then
thinBasic_RunTimeError(%ERR__MODULE_SPECIFIC, "It was not possible to create a ServerXMLHTTP object " & $PROGID_MSXML2_ServerXMLHTTP600 & ")")
End If
End Method
Class Method Destroy()
pHTTPServer = Nothing
End Method
'----------------------------------------------------------------------------
' We need to define an interface that will contain public methods
'----------------------------------------------------------------------------
Interface iMsxml2_ServerXMLHTTP
Inherit IUnknown
'----------------------------------------------------------------------------
' Creator
'----------------------------------------------------------------------------
Method cServerXMLHTTP_Create() As Dword
pHTTPServer = ANYCOM $PROGID_MSXML2_ServerXMLHTTP600
If IsNothing(pHTTPServer) Then Exit Method
End Method
'----------------------------------------------------------------------------
' Destructor
'----------------------------------------------------------------------------
Method cServerXMLHTTP_Destroy() As Dword
Set pHTTPServer = Nothing
End Method
'----------------------------------------------------------------------------
' GetClassObject
'----------------------------------------------------------------------------
Method cServerXMLHTTP_GetClassObject() As Dword
Method = VarPtr(pHTTPServer)
End Method
'----------------------------------------------------------------------------
' IsNothing
'----------------------------------------------------------------------------
Method cServerXMLHTTP_IsNothing() As Dword
Method = IsNothing(pHTTPServer)
End Method
'----------------------------------------------------------------------------
' IsObject
'----------------------------------------------------------------------------
Method cServerXMLHTTP_IsObject() As Dword
Method = IsObject(pHTTPServer)
End Method
End Interface
End Class
'----------------------------------------------------------------------------
'----------------------------------------------------------------------------
'--------------------------------------------------------------------------------------
'---WRAPPERS to simulate an object using a PTR
'--------------------------------------------------------------------------------------
' Here we are. In order to let thinBasic know about a class, we need to wrap
' some, or all of the class interface methods defined above.
' This will also let us choose any syntax of our method
'--------------------------------------------------------------------------------------
'--------------------------------------------------------------------------------------
' We need to create a constructor wrapper function
' Constructor function will be executed by thinBasic when the class will be instantiated
' in script using the NEW keyword
'--------------------------------------------------------------------------------------
' IMPORTANT:
' ALL wrapper functions MUST HAVE a "BYVAL pObject AS LONG" parameter.
' pObject will contain a pointer to the object of our class
' This pointer is initialized by thinBasic engine to hold object reference
'--------------------------------------------------------------------------------------
Sub Msxml2_ServerXMLHTTP_Create( ByVal pObject As Long )
Local pp As Byte
'---Remember: programmer is responsible of syntax so wrapper method MUST parse syntax
'---Optionally checks if there is a (
pp = thinBasic_CheckOpenParens_Optional
If pp Then thinBasic_CheckCloseParens_Mandatory
'---If all went fine ...
If thinBasic_ErrorFree Then
'Here is the magic !!!!!!!!!!!!
'Use the magic REDIM ... AT and the trick is done
'We are defining a new class interface variable at the pointer location allocated by thinBasic and passed to all methods
ReDim oObject(1& To 1&) As iMsxml2_ServerXMLHTTP At pObject
oObject(1&) = Class "cMsxml2_ServerXMLHTTP"
'---We call internal creator
oObject(1&).cServerXMLHTTP_Create()
End If
End Sub
'--------------------------------------------------------------------------------------
Sub Msxml2_ServerXMLHTTP_Destroy( ByVal pObject As Long )
'--------------------------------------------------------------------------------------
If thinBasic_ErrorFree Then
ReDim oObject(1& To 1&) As iMsxml2_ServerXMLHTTP At pObject
oObject(1&).cServerXMLHTTP_Destroy()
End If
End Sub
'----------------------------------------------------------------------------
Function Msxml2_ServerXMLHTTP_GetClassObject(ByVal pObject As Long) As Dword
'----------------------------------------------------------------------------
If thinBasic_ErrorFree Then
ReDim oObject(1& To 1&) As iMsxml2_ServerXMLHTTP At pObject
Function = oObject(1&).cServerXMLHTTP_GetClassObject()
End If
End Function
'--------------------------------------------------------------------------------------
Function Msxml2_ServerXMLHTTP_ClassHandling ( _
ByVal pObject As Long , _
ByVal lAction As Long , _
ByVal sPreviousName As String , _
Optional ByVal RetValNum As Ext Ptr , _
ByVal RetValStr As String Ptr , _
ByVal lRecursive As Long , _
ByVal sParam1 As String , _
ByVal sParam2 As String , _
ByVal eParam1 As Ext , _
ByVal eParam2 As Ext _
) As Long
'--------------------------------------------------------------------------------------
' IMPORTANT: function must return main return type of called method/property
'--------------------------------------------------------------------------------------
Local pp As Long
Local sName As String
Local sMethod As String
Local sUrl As String
Local sHeader As String
Local eAsync As Ext
Local sUser As String
Local sPassword As String
Local eAsync_Present As Byte
Local sUser_Present As Byte
Local sPassword_Present As Byte
Local sValue As String
Local sBody As String
Local eresolveTimeout As Ext
Local econnectTimeout As Ext
Local esendTimeout As Ext
Local ereceiveTimeout As Ext
Local eWaitSec As Ext
Local vWaitSec As variant
'---We map our instance (whatever it will be) to a pObject pointer
ReDim oObject(1& To 1&) As iMsxml2_ServerXMLHTTP At pObject
'---Here we get internal real class object and we will use it directly from now on
ReDim lServerXMLHTTP(1& To 1&) As IServerXMLHTTPRequest2 At oObject(1&).cServerXMLHTTP_GetClassObject
'---We need to parse next token and we need to use special fucntion: thinBasic_GetUnknownToken
'---This function is special because it instruct parser (thinCore) to not check for token validity
'---but just parse something and return whetever it will find in terms of token string
' ATTENTION: thinBasic_GetUnknownToken always return UCASE tokens in order to simplify SELECT/CASE
sName = thinBasic_GetUnknownToken
'---Now we have to check parsed token using token content
Select Case Const$ sName '<<<---IMPORTANT: use CONST$ to speed up Select Case operations
'-------------------------------------------------------
'---Methods
'---------------
Case "STATUS"
pp = thinBasic_CheckOpenParens_Optional
If pp Then thinBasic_CheckCloseParens_Mandatory
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnNumber
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValStr = Mid$(@RetValStr, eStart, eLen)
Else
@RetValNum = lServerXMLHTTP(1&).Status
End If
End If
Case "STATUSTEXT"
pp = thinBasic_CheckOpenParens_Optional
If pp Then thinBasic_CheckCloseParens_Mandatory
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnString
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValStr = Mid$(@RetValStr, eStart, eLen)
Else
@RetValStr = lServerXMLHTTP(1&).StatusText
End If
End If
Case "READYSTATE"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
pp = thinBasic_CheckOpenParens_Optional
If pp Then thinBasic_CheckCloseParens_Mandatory
Function = %thinBasic_ReturnNumber
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValStr = Mid$(@RetValStr, eStart, eLen)
Else
@RetValNum = lServerXMLHTTP(1&).ReadyState
End If
End If
Case "OPEN"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnNumber
'---parse Params
pp = thinBasic_CheckOpenParens_Optional
thinBasic_ParseString sMethod
If thinBasic_CheckComma_Mandatory Then
thinBasic_ParseString sUrl
eAsync = %FALSE
If thinBasic_CheckComma_optional Then
eAsync_Present = %TRUE
thinBasic_ParseNumber eAsync
If thinBasic_CheckComma_Optional Then
sUser_Present = %TRUE
thinBasic_ParseString sUser
If thinBasic_CheckComma_Optional Then
sPassword_Present = %TRUE
thinBasic_ParseString sPassword
End If
End If
End If
End If
If pp Then thinBasic_CheckCloseParens_Mandatory
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValNum = Left$(@RetValStr, nChars)
Else
If sPassword_Present = %TRUE Then
lServerXMLHTTP(1&).Open(sMethod, sUrl, eAsync, sUser, sPassword)
ElseIf sUser_Present = %TRUE Then
lServerXMLHTTP(1&).Open(sMethod, sUrl, eAsync, sUser)
ElseIf eAsync_Present = %TRUE Then
lServerXMLHTTP(1&).Open(sMethod, sUrl, eAsync)
Else
lServerXMLHTTP(1&).Open(sMethod, sUrl)
End If
' Method open <1> (Byval bstrMethod As WString, Byval bstrUrl As WString, Opt Byval varAsync As Variant, Opt Byval _
' bstrUser As Variant, Opt ByVal bstrPassword As Variant)
End If
End If
Case "SETREQUESTHEADER"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnNumber
'---parse Params
pp = thinBasic_CheckOpenParens_Optional
thinBasic_ParseString sHeader
If thinBasic_CheckComma_Mandatory Then
thinBasic_ParseString sValue
End If
If pp Then thinBasic_CheckCloseParens_Mandatory
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValNum = Left$(@RetValStr, nChars)
Else
'@RetValNum =
lServerXMLHTTP(1&).SetRequestHeader(sHeader, sValue)
End If
End If
Case "SEND"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnNumber
'---parse Params
pp = thinBasic_CheckOpenParens_Optional
thinBasic_ParseString sBody
If pp Then thinBasic_CheckCloseParens_Mandatory
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValNum = Left$(@RetValStr, nChars)
Else
'@RetValNum =
lServerXMLHTTP(1&).Send(sBody)
End If
End If
Case "ABORT"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnNumber
'---parse Params
If thinBasic_CheckOpenParens_Optional Then thinBasic_CheckCloseParens_Mandatory
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValNum = Left$(@RetValStr, nChars)
Else
lServerXMLHTTP(1&).Abort
End If
End If
Case "RESPONSETEXT"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnString
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValStr = Mid$(@RetValStr, eStart, eLen)
Else
@RetValStr = lServerXMLHTTP(1&).ResponseText
End If
End If
Case "SETTIMEOUTS"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnNumber
'---parse Params
thinBasic_Parse4Numbers(eresolveTimeout, econnectTimeout, esendTimeout, ereceiveTimeout)
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValNum = Left$(@RetValStr, nChars)
Else
'@RetValNum =
lServerXMLHTTP(1&).setTimeouts(eresolveTimeout, econnectTimeout, esendTimeout, ereceiveTimeout)
End If
End If
Case "GETALLRESPONSEHEADERS" ' UCase$("getAllResponseHeaders")
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
pp = thinBasic_CheckOpenParens_Optional
If pp Then thinBasic_CheckCloseParens_Mandatory
Function = %thinBasic_ReturnString
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValStr = Mid$(@RetValStr, eStart, eLen)
Else
@RetValStr = lServerXMLHTTP(1&).getAllResponseHeaders
End If
End If
Case "GETRESPONSEHEADER" ' UCase$("getResponseHeader")
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnString
'---parse Params
pp = thinBasic_CheckOpenParens_Optional
thinBasic_ParseString sBody
If pp Then thinBasic_CheckCloseParens_Mandatory
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValStr = Mid$(@RetValStr, eStart, eLen)
Else
@RetValStr = lServerXMLHTTP(1&).getResponseHeader(sBody)
End If
End If
Case "ISOBJECT"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
pp = thinBasic_CheckOpenParens_Optional
If pp Then thinBasic_CheckCloseParens_Mandatory
Function = %thinBasic_ReturnNumber
'---parse Params
If thinBasic_CheckOpenParens_Optional Then thinBasic_CheckCloseParens_Mandatory
@RetValNum = oObject(1&).cServerXMLHTTP_IsObject
Case "ISNOTHING"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
pp = thinBasic_CheckOpenParens_Optional
If pp Then thinBasic_CheckCloseParens_Mandatory
Function = %thinBasic_ReturnNumber
'---parse Params
If thinBasic_CheckOpenParens_Optional Then thinBasic_CheckCloseParens_Mandatory
@RetValNum = oObject(1&).cServerXMLHTTP_IsNothing
Case "WAITFORRESPONSE"
'---We need to tell thinCore what type of info we are returning assigning to return function value the type
'---Than assign to @RetValNum or @RetValStr the return value
Function = %thinBasic_ReturnNumber
'---parse Params
pp = thinBasic_CheckOpenParens_Optional
thinBasic_ParseNumber eWaitSec
Let vWaitSec = eWaitSec As Long
If pp Then thinBasic_CheckCloseParens_Mandatory
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValNum = Left$(@RetValStr, nChars)
Else
@RetValNum = lServerXMLHTTP(1&).WaitForResponse(eWaitSec)
'MsgBox "WaitForResponse" & Str$(eWaitSec)
End If
End If
Case "GETOPTION"
Local lGetOption As Long
'---parse Params
pp = thinBasic_CheckOpenParens_Optional
thinBasic_ParseLong lGetOption
If pp Then thinBasic_CheckCloseParens_Mandatory
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValStr = Mid$(@RetValStr, eStart, eLen)
Else
Select Case lGetOption
Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_URL
Function = %thinBasic_ReturnString
@RetValStr = Variant$(lServerXMLHTTP(1&).getOption(lGetOption))
Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_URL_CODEPAGE
Function = %thinBasic_ReturnNumber
@RetValNum = Variant#(lServerXMLHTTP(1&).getOption(lGetOption))
Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_ESCAPE_PERCENT_IN_URL
Function = %thinBasic_ReturnNumber
@RetValNum = Variant#(lServerXMLHTTP(1&).getOption(lGetOption))
Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS
Function = %thinBasic_ReturnNumber
@RetValNum = Variant#(lServerXMLHTTP(1&).getOption(lGetOption))
Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_SELECT_CLIENT_SSL_CERT
Function = %thinBasic_ReturnString
@RetValStr = Variant$(lServerXMLHTTP(1&).getOption(lGetOption))
End Select
End If
End If
Case "SETOPTION"
Local lSetOption As Long
Local sSetOptionValue As String
Local lSetOptionValue As Long
Local vSetOptionVariant As variant
'---parse Params
pp = thinBasic_CheckOpenParens_Optional
thinBasic_ParseLong lSetOption
thinBasic_CheckComma_Mandatory
'---If all went fine ...
If thinBasic_ErrorFree Then
If lRecursive Then
'@RetValStr = Mid$(@RetValStr, eStart, eLen)
Else
Select Case lSetOption
'Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_URL
' Function = %thinBasic_ReturnString
' @RetValStr = Variant$(lServerXMLHTTP(1&).getOption(lGetOption))
Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_URL_CODEPAGE
Function = %thinBasic_ReturnNumber
thinBasic_ParseLong lSetOptionValue
vSetOptionVariant = Variant#(lSetOptionValue)
lServerXMLHTTP(1&).SetOption(lSetOption, vSetOptionVariant)
Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_ESCAPE_PERCENT_IN_URL
Function = %thinBasic_ReturnNumber
thinBasic_ParseLong lSetOptionValue
vSetOptionVariant = Variant#(lSetOptionValue)
lServerXMLHTTP(1&).SetOption(lSetOption, vSetOptionVariant)
Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS
Function = %thinBasic_ReturnNumber
thinBasic_ParseLong lSetOptionValue
vSetOptionVariant = Variant#(lSetOptionValue)
lServerXMLHTTP(1&).SetOption(lSetOption, vSetOptionVariant)
Case %Enum__SERVERXMLHTTP_OPTION.SXH_OPTION_SELECT_CLIENT_SSL_CERT
Function = %thinBasic_ReturnNumber
thinBasic_ParseString sSetOptionValue
vSetOptionVariant = Variant$(sSetOptionValue)
lServerXMLHTTP(1&).SetOption(lSetOption, vSetOptionVariant)
End Select
End If
End If
If pp Then thinBasic_CheckCloseParens_Mandatory
'%SXH_OPTION_ESCAPE_PERCENT_IN_URL
'%SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS
'%SXH_OPTION_SELECT_CLIENT_SSL_CERT
'%SXH_OPTION_URL
'%SXH_OPTION_URL_CODEPAGE
'%SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS
'%SXH_SERVER_CERT_IGNORE_CERT_CN_INVALID
'%SXH_SERVER_CERT_IGNORE_CERT_DATE_INVALID
'%SXH_SERVER_CERT_IGNORE_UNKNOWN_CA
'%SXH_SERVER_CERT_IGNORE_WRONG_USAGE
' '-------------------------------------------------------
' '---Properties
' '---------------
' Case "VALUE" '---Support GET and SET. Programmer is free to support whatever event type
'
' '---In all "value" cases we will return a string, so we can assign return type here
' Function = %thinBasic_ReturnString
'
' Select Case Long lAction
' Case %Class_Action_Get
' @RetValStr = oObject(1&).sGet
'
' Case %Class_Action_Set
' lEqualType = thinBasic_CheckEqualType_Mandatory
' If thinBasic_ErrorFree Then
' Select Case Long lEqualType
'
' '---Assignment
' Case %Equal_EQ
' oObject(1&).sSet(thinBasic_Parse1String)
'
' '---Assignment with concatenation
' Case %Equal_PLUSEQUAL, _
' %Equal_CONCEQUAL, _
' %Equal_POINTEQUAL
'
' oObject(1&).sSet(oObject(1&).sGet() & thinBasic_Parse1String)
' Case Else
' '---Not supperted for strings
' 'MsgBox FuncName$ & Str$(lEqualType)
' End Select
' End If
'
' End Select
Case Else
thinBasic_RunTimeError(%ERR__CLASS_METHODPROPERTY_NOTFOUND)
End Select
'-------------------------------------------------------
'---Compound methods
'---------------
' In case we have compound methods (defined as point after a method or property
' call this function recursively.
' Example: myObject.MyMethod.MyCompoundSubMethod
'---------------
If thinBasic_CheckPoint_Optional Then
Function = Msxml2_ServerXMLHTTP_ClassHandling ( _
pObject , _
lAction , _
sName , _
RetValNum , _
RetValStr , _
%TRUE _
)
End If
End Function