/
CML_Data_Datafier.clw
694 lines (571 loc) · 23.9 KB
/
CML_Data_Datafier.clw
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
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
!---------------------------------------------------------------------------------------------!
! Copyright © Jeff Slarve
! All Rights Reserved
!---------------------------------------------------------------------------------------------!
!region
!
! The Datafier Class is for creation of on-the-fly variables that are usable in a thread-safe manner and accessible globally
!
! Redistribution and use in source and binary forms, with or without
! modification, are permitted provided that the following conditions are met:
!
! 1. Redistributions of source code must retain the above copyright notice, this
! list of conditions and the following disclaimer.
! 2. Redistributions in binary form must reproduce the above copyright notice,
! this list of conditions and the following disclaimer in the documentation
! and/or other materials provided with the distribution.
! 3. The use of this software in a paid-for programming toolkit (that is, a commercial
! product that is intended to assist in the process of writing software) is
! not permitted.
!
! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
! ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
! WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
! DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
! ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
! (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
! LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
! (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
! SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
!
! The views and conclusions contained in the software and documentation are those
! of the authors and should not be interpreted as representing official policies,
! either expressed or implied, of www.DevRoadmaps.com or www.ClarionMag.com.
!
! If you find this software useful, please support its creation and maintenance
! by taking out a subscription to www.DevRoadmaps.com.
!---------------------------------------------------------------------------------------------!
!endregion
MEMBER
map
end
Include('CML_Data_Datafier.inc'),once
include('CML_IncludeInAllClassHeaderFiles.inc'),once
!include('CML_System_ErrorManager.inc'),once
!include('equates.clw'),once
Itemize,Pre(JSDF)
OK Equate(0)
Notify Equate
Exists Equate
ReadOnly Equate
end
!==============================================================================================================================================================================================
CML_Data_Datafier.BindData Procedure(<String pNameSpace>)
!==============================================================================================================================================================================================
!Binds all of the variables that are set to be "bindable". This allows you to use your dynamic variables in EVALUATE()'d expressions.
!If you only wish to bind a particular namespace, then pass the namespace as a parameter. Otherwise, all bindable variables are bound in all namespaces.
NameSpaceNdx Long
Ndx Long
Code
If SELF.IsBound
SELF.UnBindData
end
PushBind(TRUE) !Keep existing bound stuff bound
SELF.CSWait()
If Omitted(pNameSpace) or NOT pNameSpace !Do all of them
Loop NameSpaceNdx = 1 to Records(SELF.NameSpace)
Get(SELF.NameSPace,NameSpaceNdx)
If ErrorCode()
Break
end
Do BindDataQueue
end
else
SELF.NameSpace.NameSpace_Sort = Upper(pNameSpace)
Get(SELF.NameSpace,SELF.NameSpace.NameSpace_Sort)
If NOT ErrorCode()
Do BindDataQueue
end
end
SELF.IsBound = TRUE
SELF.CSRelease()
BindDataQueue Routine
Loop Ndx = 1 to Records(SELF.NameSpace.Q)
Get(SELF.NameSpace.Q,Ndx)
If ErrorCode() or NOT SELF.NameSpace.Q.Bindable
Break
end
If SELF.NameSpace.Q.DataType = DataType:JSDFExpression
BindExpression(SELF.NameSpace.Q.Label,Clip(SELF.NameSpace.Q.Var))
else
Bind(SELF.NameSpace.Q.Label,SELF.NameSpace.Q.Var)
end
end
!==============================================================================================================================================================================================
CML_Data_Datafier.ClearValue Procedure(String pLabel,<Short pDir>,<String pNameSpace>)
!==============================================================================================================================================================================================
!This is calls Clarion's CLEAR() statement, and can be used to clear high or low.
!Not sure what use this has. It was initially put here to demonstrate to myself that the correct datatypes were being assigned. E.G. clearing a DataType:Byte high will yield 255.
!
Code
SELF.CSWait()
Loop 1 Times
If SELF.FetchNameSpace(pNameSpace)
Break
end
If SELF.Fetch(pLabel)
Break
end
If Omitted(pDir) or NOT pDir
Clear(SELF.NameSpace.Q.Var)
else
Clear(SELF.NameSpace.Q.Var,pDir)
end
end
SELF.CSRelease()
!==============================================================================================================================================================================================
CML_Data_Datafier.Construct Procedure
!==============================================================================================================================================================================================
Code
SELF.IsThreadSafe = TRUE
SELF.OptionExplicit = FALSE
SELF.IsBound = FALSE
SELF.NameSpace &= NEW CML_DataFier_NameSpaceQType
SELF.FetchNameSpace(CML_DataFier_Default_Namespace)
SELF.QLock &= new CML_System_Threading_CriticalSection
!==============================================================================================================================================================================================
CML_Data_Datafier.CSRelease Procedure
!==============================================================================================================================================================================================
!A wrapper for the critical section .Release() method
Code
If SELF.IsThreadSafe
SELF.QLock.Release
end
!==============================================================================================================================================================================================
CML_Data_Datafier.CSWait Procedure
!==============================================================================================================================================================================================
!A wrapper for the critical section .Wait() method
Code
If SELF.IsThreadSafe
SELF.QLock.Wait
end
!==============================================================================================================================================================================================
CML_Data_Datafier.Declare Procedure(String pLabel,<String pNameSpace>,Byte pBindable=FALSE)
!==============================================================================================================================================================================================
!If the .OptionExplicit property is set, then .Declare() must be called before the variable can be used.
ReturnVal Long,Auto
Code
ReturnVal = JSDF:OK
SELF.CSWait()
SELF.FetchNameSpace(pNameSpace)
If SELF.Fetch(pLabel)
Clear(SELF.NameSpace.Q)
SELF.NameSpace.Q.Label = pLabel
SELF.NameSpace.Q.Label_Sort = Upper(pLabel)
SELF.NameSpace.Q.DataType = DataType:JSDFUnset
SELF.NameSpace.Q.Bindable = pBindable
Add(SELF.NameSpace.Q,-SELF.NameSpace.Q.Bindable)
else
ReturnVal = JSDF:Exists
end
SELF.CSRelease()
Return ReturnVal
!==============================================================================================================================================================================================
CML_Data_Datafier.Destruct Procedure
!==============================================================================================================================================================================================
Ndx Long
Code
If SELF.NameSpace.Q &= NULL
Return
end
SELF.CSWait()
Loop
Get(SELF.NameSpace,1)
If ErrorCode()
Break
end
Loop Ndx = Records(SELF.NameSpace.Q) to 1 by -1
Get(SELF.NameSpace.Q,Ndx)
If ErrorCode()
Break
end
If SELF.DisposeValue(SELF.NameSpace.Q.Label,TRUE,TRUE)
Break
end
end
Dispose(SELF.NameSpace.Q)
Delete(SELF.NameSpace)
end
Dispose(SELF.NameSpace)
SELF.CSRelease()
dispose(SELF.QLock)
!==============================================================================================================================================================================================
CML_Data_Datafier.DisposeValue Procedure(String pLabel,Byte pNoLock=False,Byte pUseCurrent=FALSE,<String pNameSpace>)
!==============================================================================================================================================================================================
!Disposes of a variable
rByte &byte
rShort &Short
rUshort &Ushort
rDate &Date
rTime &Time
rLong &Long
rULong &ULong
rSReal &Sreal
rReal &Real
rDecimal &Decimal
rPDecimal &PDecimal
rBFloat4 &BFloat4
rBFloat8 &BFloat8
rString &String
rCString &CString
rPString &PString
ReturnVal Long,Auto
Code
ReturnVal = JSDF:OK
If NOT pNoLock
SELF.CSWait()
end
Loop 1 times
If SELF.FetchNameSpace(pNameSpace,pUseCurrent)
ReturnVal = JSDF:Notify
Break
end
If NOT SELF.Fetch(pLabel,pUseCurrent)
Case SELF.NameSpace.Q.DataType
of DataType:Byte
rByte &= (SELF.NameSpace.Q.Address)
Dispose(rByte)
of DataType:Short
rShort &= (SELF.NameSpace.Q.Address)
Dispose(rShort)
of DataType:UShort
rUShort &= (SELF.NameSpace.Q.Address)
Dispose(rUShort)
of DataType:Date
rDate &= (SELF.NameSpace.Q.Address)
Dispose(rDate)
of DataType:Time
rTime &= (SELF.NameSpace.Q.Address)
Dispose(rTime)
of DataType:Long
rLong &= (SELF.NameSpace.Q.Address)
Dispose(rLong)
of DataType:ULong
rULong &= (SELF.NameSpace.Q.Address)
Dispose(rULong)
of DataType:SReal
rSReal &= (SELF.NameSpace.Q.Address)
Dispose(rSReal)
of DataType:Real
rReal &= (SELF.NameSpace.Q.Address)
Dispose(rReal)
of DataType:Decimal
rDecimal &= (SELF.NameSpace.Q.Address)
dispose(rDecimal)
of DataType:PDecimal
rPDecimal &= (SELF.NameSpace.Q.Address)
Dispose(rPDecimal)
of DataType:BFLOAT4
rBfloat4 &= (SELF.NameSpace.Q.Address)
Dispose(rBFloat4)
of DataType:BFLOAT8
rBfloat8 &= (SELF.NameSpace.Q.Address)
Dispose(rBfloat8)
of DataType:String
rSTring &= (SELF.NameSpace.Q.Address)
Dispose(rString)
of DataType:CString
rCSTring &= (SELF.NameSpace.Q.Address)
Dispose(rCString)
of DataType:PString
rPString &= (SELF.NameSpace.Q.Address)
Dispose(rPString)
else
!Don't dispose
end
SELF.NameSpace.Q.Var &= NULL
Delete(SELF.NameSpace.Q)
end
end
If NOT pNoLock
SELF.CSRelease()
end
Return ReturnVal
!==============================================================================================================================================================================================
CML_Data_Datafier.Fetch Procedure(String pLabel,Byte pUseCurrent=False)!,Byte,Private
!==============================================================================================================================================================================================
!Internally used fetching mechanism.
Code
If NOT pUseCurrent
SELF.NameSpace.Q.Label_Sort = Upper(pLabel)
Get(SELF.NameSpace.Q, SELF.NameSpace.Q.Label_Sort)
Return ErrorCode()
else
If NOT Pointer(SELF.NameSpace.Q)
Return 33 !Record Not Available
end
end
Return 0
!==============================================================================================================================================================================================
CML_Data_Datafier.FetchNameSpace Procedure(<String pNameSpace>,Byte pUseCurrent=FALSE)!,Long,Private
!==============================================================================================================================================================================================
!Since the namespace queue is a queue containing a queue reference, this method makes sure that the correct stuff happens when adding a namespace that doesn't exist.
NameSpace CString(60)
Code
If pUseCurrent
If Pointer(SELF.NameSpace)
RETURN JSDF:OK
else
RETURN JSDF:Notify
end
end
If Omitted(pNameSpace) OR NOT pNameSpace
NameSpace = CML_DataFier_Default_Namespace
else
NameSpace = pNameSpace
end
SELF.NameSpace.NameSpace_Sort = Upper(NameSpace)
Get(SELF.NameSpace,SELF.NameSpace.NameSpace_Sort)
If ErrorCode()
SELF.NameSpace.NameSpace = NameSpace
SELF.NameSpace.NameSpace_Sort = Upper(NameSpace)
SELF.NameSpace.Q &= NEW CML_DataFier_QType
Add(SELF.NameSpace)
end
Return JSDF:OK
!==============================================================================================================================================================================================
CML_Data_Datafier.GetAddress Procedure(String pLabel,<String pNameSpace>)!,Long
!==============================================================================================================================================================================================
!This is could have a great use if used in a thread-safe manner.
LOC:Address Long
Code
SELF.CSWait()
SELF.FetchNameSpace(pNameSpace)
If NOT SELF.Fetch(pLabel)
LOC:Address = SELF.NameSpace.Q.Address
end
SELF.CSRelease()
Return LOC:Address
!==============================================================================================================================================================================================
CML_Data_Datafier.GetValue Procedure(String pLabel,Byte pFormatted=False,<String pNameSpace>)!ANY
!==============================================================================================================================================================================================
!Retrieves the value of the named variable.
!Optionally returns a formatted string based on picture.
!If the datatype is DataType:JSDFExpression, then the result is EVALUATE()'d
A ANY
Code
SELF.CSWait()
SELF.FetchNameSpace(pNameSpace)
If NOT SELF.Fetch(pLabel)
If SELF.NameSpace.Q.DataType = DataType:JSDFExpression
A = Evaluate(SELF.NameSpace.Q.Var)
else
If pFormatted AND Self.NameSpace.Q.Picture
A = Clip(Left(Format(SELF.NameSpace.Q.Var,SELF.NameSpace.Q.Picture)))
else
A = SELF.NameSpace.Q.Var
end
end
end
SELF.CSRelease()
Return A
!==============================================================================================================================================================================================
CML_Data_Datafier.GetValueList Procedure(*Queue pQ,Short pLabelColumn=1,Short pValueColumn=2,Short pSortLabelColumn=3,Byte pFormatted=False,<String pNameSpace>)
!==============================================================================================================================================================================================
!Copies values to a queue passed by the user so they can be manipulated locally by the user without thread worries
LabelColumn ANY
ValueColumn ANY
SortLabelColumn ANY
Ndx LONG
Code
SELF.CSWait()
SELF.FetchNameSpace(pNameSpace)
If pLabelColumn
LabelColumn &= WHAT(pQ,pLabelColumn)
end
If pValueColumn
ValueColumn &= WHAT(pQ,pValueColumn)
end
If pSortLabelColumn
SortLabelColumn &= WHAT(pQ,pSortLabelColumn)
end
Loop Ndx = 1 to Records(SELF.NameSpace.Q)
Get(Self.NameSpace.Q,Ndx)
LabelColumn = SELF.NameSpace.Q.Label
If pFormatted AND Self.NameSpace.Q.Picture
ValueColumn = Clip(Left(Format(SELF.NameSpace.Q.Var,SELF.NameSpace.Q.Picture)))
else
ValueColumn = SELF.NameSpace.Q.Var
end
SortLabelColumn = Upper(LabelColumn)
Add(pQ)
end
LabelColumn &= NULL
ValueColumn &= NULL
SortLabelColumn &= NULL
SELF.CSRelease()
!==============================================================================================================================================================================================
CML_Data_Datafier.SetReadOnly Procedure(String pLabel,<String pNameSpace>,Byte pReadOnly=TRUE)
!==============================================================================================================================================================================================
!Sets a variable to readonly or not readonly
Code
SELF.CSWait()
SELF.FetchNameSpace(pNameSpace)
If NOT SELF.Fetch(pLabel)
SELF.NameSpace.Q.ReadOnly = Choose(pReadOnly)
Put(SELF.NameSpace.Q)
end
SELF.CSRelease()
!==============================================================================================================================================================================================
CML_Data_Datafier.SetValue Procedure(String pLabel,? pValue,<String pPicture>,Byte pDataType=0,Byte pDigits=0,Byte pPrecision=0,Byte pBindable=FALSE,<String pNameSpace>)!,Long,Proc
!==============================================================================================================================================================================================
!Sets the value of a variable.
!pLabel = The name of the variable
!pValue = The desired value
!pPicture = A string containing a valid Clarion picture token.
!pDatatype = Any of the expected DataTypes as defined in EQUATES.CLW, with the exception of DataType:JSDFExpression.
! If it is DataType:JSDFExpression, then the data is stored as a string and evaluated when GetValue() occurs.
!pDigits = Number of digits (e.g. in a Decimal) or characters(e.g. in a String)
!pPrecision = Precision, where applicable (e.g. in a Decimal)
!pBindable = Whether or not you wish to be able to bind() this field in the .BindData() method.
!pNamespace = If specified, it will place the data in that namespace.
ReturnVal Long,Auto
Code
ReturnVal = JSDF:OK
Self.CSWait()
SELF.FetchNameSpace(pNameSpace)
Loop 1 times
If SELF.Fetch(pLabel)
If SELF.OptionExplicit !Must be "declared"
ReturnVal = JSDF:Notify
Break
end
Clear(SELF.NameSpace.Q)
SELF.NameSpace.Q.Label = Clip(pLabel)
SELF.NameSpace.Q.Label_Sort = Upper(SELF.NameSpace.Q.Label)
SELF.NameSpace.Q.Bindable = pBindable
Do PrimeFields
Do SetDataType
SELF.NameSpace.Q.Var = pValue
Add(SELF.NameSpace.Q,-SELF.NameSpace.Q.Bindable)
else
If SELF.NameSpace.Q.ReadOnly
ReturnVal = JSDF:ReadOnly
Break
end
If SELF.NameSpace.Q.DataType = DataType:JSDFUnset !Was "Declared"
Do PrimeFields
Do SetDataType
end
SELF.NameSpace.Q.Var = pValue
Put(SELF.NameSpace.Q)
end
end
Self.CSRelease()
Return ReturnVal
!............................................................
PrimeFields Routine
!''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
SELF.NameSpace.Q.Picture = Clip(pPicture)
SELF.NameSpace.Q.DataType = pDataType
!............................................................
SetDataType Routine
!''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Data
rByte &byte
rShort &Short
rUshort &Ushort
rDate &Date
rTime &Time
rLong &Long
rULong &ULong
rSReal &Sreal
rReal &Real
rDecimal &Decimal
rPDecimal &PDecimal
rBFloat4 &BFloat4
rBFloat8 &BFloat8
rString &String
rCString &CString
rPString &PString
Code
Case pDataType
of 0
Exit
of DataType:Byte
rByte &= NEW Byte
SELF.NameSpace.Q.Var &= rByte
SELF.NameSpace.Q.Address = Address(rByte)
of DataType:Short
rShort &= NEW Short
SELF.NameSpace.Q.Var &= rShort
SELF.NameSpace.Q.Address = Address(rShort)
of DataType:UShort
rUShort &= NEW UShort
SELF.NameSpace.Q.Var &= rUShort
SELF.NameSpace.Q.Address = Address(rUShort)
of DataType:Date
rDate &= NEW Date
SELF.NameSpace.Q.Var &= rDate
SELF.NameSpace.Q.Address = Address(rDate)
of DataType:Time
rTime &= NEW Time
SELF.NameSpace.Q.Var &= rTime
SELF.NameSpace.Q.Address = Address(rTime)
of DataType:Long
rLong &= NEW Long
SELF.NameSpace.Q.Var &= rLong
SELF.NameSpace.Q.Address = Address(rLong)
of DataType:ULong
rULong &= NEW ULong
SELF.NameSpace.Q.Var &= rULong
SELF.NameSpace.Q.Address = Address(rULong)
of DataType:SReal
rSReal &= NEW SReal
SELF.NameSpace.Q.Var &= rSreal
SELF.NameSpace.Q.Address = Address(rSReal)
of DataType:Real
rReal &= NEW Real
SELF.NameSpace.Q.Var &= rReal
SELF.NameSpace.Q.Address = Address(rReal)
of DataType:Decimal
If pDigits > pPrecision
rDecimal &= NEW Decimal(pDigits,pPrecision)
SELF.NameSpace.Q.Var &= rDecimal
SELF.NameSpace.Q.Address = Address(rDecimal)
end
of DataType:PDecimal
If pDigits > pPrecision
rPDecimal &= NEW PDecimal(pDigits,pPrecision)
SELF.NameSpace.Q.Var &= rPDecimal
SELF.NameSpace.Q.Address = Address(rPDecimal)
end
of DataType:BFLOAT4
rBfloat4 &= NEW bFLoat4
SELF.NameSpace.Q.Var &= rBFloat4
SELF.NameSpace.Q.Address = Address(rBfloat4)
of DataType:BFLOAT8
rBfloat8 &= NEW bFLoat8
SELF.NameSpace.Q.Var &= rBFloat8
SELF.NameSpace.Q.Address = Address(rBfloat8)
of DataType:String
If pDigits
rSTring &= NEW String(pDigits)
SELF.NameSpace.Q.Var &= rString
SELF.NameSpace.Q.Address = Address(rString)
end
of DataType:CString
If pDigits > 1
rCSTring &= NEW CString(pDigits)
SELF.NameSpace.Q.Var &= rCstring
SELF.NameSpace.Q.Address = Address(rCString)
end
of DataType:PString
If Inrange(pDigits,2,256)
rPString &= NEW pString(pDigits)
SELF.NameSpace.Q.Var &= rPString
SELF.NameSpace.Q.Address = Address(rPString)
end
else
!We'll just use the Any as is
end
!==============================================================================================================================================================================================
CML_Data_Datafier.UnBindData Procedure
!==============================================================================================================================================================================================
!Does a PopBind()
Code
If SELF.IsBound
SELF.IsBound = FALSE
PopBind()
end