-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathhbnf.html
7635 lines (7151 loc) · 586 KB
/
hbnf.html
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
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="referrer" content="origin">
<meta name="viewport" content="initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests; block-all-mixed-content">
<meta name="generator" content="hbdoc">
<meta name="keywords" content="Harbour, Clipper, xBase, database, Free Software, GPL, compiler, cross-platform, 32-bit, 64-bit">
<title>Harbour Reference Guide · hbnf lib</title>
<style>
/**
* Minified by jsDelivr using clean-css v4.2.1.
* Original file: /gh/PrismJS/[email protected]/themes/prism-okaidia.css
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#272822}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#a6e22e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#e6db74}.token.keyword{color:#66d9ef}.token.important,.token.regex{color:#fd971f}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
/*# sourceMappingURL=/sm/40fbac8c090a0ea2949bef662c4dc8f61e9fdf4136e4615ec312d47b6c8d4578.map */
</style>
<link rel="stylesheet" href="hbdoc.css">
<body>
<header>
<svg viewBox="0 0 2260 2260" xmlns="http://www.w3.org/2000/svg">
<path d="m900 1908c137.17-53.265 443.4-77.006 600-52.437-27.114-474.75-34.113-758.18-7.68-1116.3 2.056-27.195 4.283-54.9 6.68-83.245-34.633 68.628-579.45 1206.4-599 1252z"/>
<path d="m1503 297c-123.84 327.12-161.3 844.46-213.46 1389.5-169.5-13.113-449.01 19.795-659.3 108.82 13.528-23.75 771.23-1330.1 872.77-1498.3z"/>
<path d="m1172 1270c-224.3-65.046-473.09 64.996-694 204 153.35-235.43 613.25-936.89 1011-1474-301.51 419.86-317.18 1087.9-317 1270z"/>
<path d="m620.8 2258.7c0.662-1.037 1.36-2.165 2.068-3.191 36.736-55.29 105.69-101.18 205.1-96.72 193.8 8.619 357.24 25.577 652.18 7.207-290.1-9.342-643.35-48.142-1069.1-124.55 105.83 77.98 193.83 195.4 209.76 217.25"/>
<path d="m2259.2 2007.9c-351.83 85.376-1111.3 54.312-2014.2-105.24 59.534 32.024 105.24 68.44 160.57 113.87 884.55 158.71 1465.7 153.54 1808.7 60.37 31.307-22.43 35.385-37.956 44.934-69.006"/>
<path d="m2250.8 1985.6c-316.53 76.867-976 46.6-1793.5-72.332-79.588-11.605-308.23-46.57-445.63-69.063-7.464-15.506-11.282-40.462-11.282-70.79 509.45 68.675 1799.6 275.42 2244 168.26 2.015 12.02 7.115 18.487 6.527 43.929"/>
</svg>
<div>
<div><a href="index.html">Harbour Reference Guide</a></div>
<div>
<nav class="menu">
<nav class="dropdown">
<span class="dropbtn" onclick="">hbnf lib</span>
<nav class="dropdown-content">
<a href="harbour.html">Harbour core</a>
<hr>
<a href="clc53.html">Clipper 5.3</a>
<a href="clct3.html">Clipper Tools 3</a>
<hr>
<a href="gtwvw.html">gtwvw</a>
<a href="hbct.html">hbct</a>
<a href="hbcups.html">hbcups</a>
<a href="hbgd.html">hbgd</a>
<a href="hbgt.html">hbgt</a>
<a href="hbmisc.html">hbmisc</a>
<a href="hbnf.html">hbnf</a>
<a href="hbxpp.html">hbxpp</a>
<a href="hbziparc.html">hbziparc</a>
<a href="rddads.html">rddads</a>
</nav>
</nav>
<nav class="dropdown lang">
<span class="dropbtn lang">EN</span><nav class="dropdown-content lang">
<a href="hbnf.html">EN</a>
<a href="pt-br/index.html">pt-BR</a>
</nav>
</nav>
</nav>
</div>
</div>
</header>
<aside>
<a href="#ft_aaddition" title="ft_AAddition()"><code>ft_AAddition()</code></a>
<a href="#ft_aavg" title="ft_AAvg()"><code>ft_AAvg()</code></a>
<a href="#ft_acctadj" title="ft_AcctAdj()"><code>ft_AcctAdj()</code></a>
<a href="#ft_acctmonth" title="ft_AcctMonth()"><code>ft_AcctMonth()</code></a>
<a href="#ft_acctqtr" title="ft_AcctQtr()"><code>ft_AcctQtr()</code></a>
<a href="#ft_acctweek" title="ft_AcctWeek()"><code>ft_AcctWeek()</code></a>
<a href="#ft_acctyear" title="ft_AcctYear()"><code>ft_AcctYear()</code></a>
<a href="#ft_adapter" title="ft_Adapter()"><code>ft_Adapter()</code></a>
<a href="#ft_adder" title="ft_Adder()"><code>ft_Adder()</code></a>
<a href="#ft_addwkdy" title="ft_AddWkDy()"><code>ft_AddWkDy()</code></a>
<a href="#ft_adessort" title="ft_ADesSort()"><code>ft_ADesSort()</code></a>
<a href="#ft_aemaxlen" title="ft_AEMaxLen()"><code>ft_AEMaxLen()</code></a>
<a href="#ft_aeminlen" title="ft_AEMinLen()"><code>ft_AEMinLen()</code></a>
<a href="#ft_alt" title="ft_Alt()"><code>ft_Alt()</code></a>
<a href="#ft_amedian" title="ft_AMedian()"><code>ft_AMedian()</code></a>
<a href="#ft_anomatches" title="ft_ANoMatches()"><code>ft_ANoMatches()</code></a>
<a href="#ft_aredit" title="ft_ArEdit()"><code>ft_ArEdit()</code></a>
<a href="#ft_asum" title="ft_ASum()"><code>ft_ASum()</code></a>
<a href="#ft_at2" title="ft_At2()"><code>ft_At2()</code></a>
<a href="#ft_bitclr" title="ft_BitClr()"><code>ft_BitClr()</code></a>
<a href="#ft_bitset" title="ft_BitSet()"><code>ft_BitSet()</code></a>
<a href="#ft_blink" title="ft_Blink()"><code>ft_Blink()</code></a>
<a href="#ft_brwswhl" title="ft_BrwsWhl()"><code>ft_BrwsWhl()</code></a>
<a href="#ft_byt2bit" title="ft_Byt2Bit()"><code>ft_Byt2Bit()</code></a>
<a href="#ft_byt2hex" title="ft_Byt2Hex()"><code>ft_Byt2Hex()</code></a>
<a href="#ft_byteand" title="ft_ByteAnd()"><code>ft_ByteAnd()</code></a>
<a href="#ft_byteneg" title="ft_ByteNeg()"><code>ft_ByteNeg()</code></a>
<a href="#ft_bytenot" title="ft_ByteNot()"><code>ft_ByteNot()</code></a>
<a href="#ft_byteor" title="ft_ByteOr()"><code>ft_ByteOr()</code></a>
<a href="#ft_bytexor" title="ft_ByteXor()"><code>ft_ByteXor()</code></a>
<a href="#ft_calendar" title="ft_Calendar()"><code>ft_Calendar()</code></a>
<a href="#ft_caplock" title="ft_CapLock()"><code>ft_CapLock()</code></a>
<a href="#ft_chdir" title="ft_ChDir()"><code>ft_ChDir()</code></a>
<a href="#ft_civ2mil" title="ft_Civ2Mil()"><code>ft_Civ2Mil()</code></a>
<a href="#ft_clrsel" title="ft_ClrSel()"><code>ft_ClrSel()</code></a>
<a href="#ft_cls" title="ft_CLS()"><code>ft_CLS()</code></a>
<a href="#ft_color2n" title="ft_Color2N()"><code>ft_Color2N()</code></a>
<a href="#ft_ctrl" title="ft_Ctrl()"><code>ft_Ctrl()</code></a>
<a href="#ft_d2e" title="ft_D2E()"><code>ft_D2E()</code></a>
<a href="#ft_datecnfg" title="ft_DateCnfg()"><code>ft_DateCnfg()</code></a>
<a href="#ft_dayofyr" title="ft_DayOfYr()"><code>ft_DayOfYr()</code></a>
<a href="#ft_daytobow" title="ft_DayToBoW()"><code>ft_DayToBoW()</code></a>
<a href="#ft_dec2bin" title="ft_Dec2Bin()"><code>ft_Dec2Bin()</code></a>
<a href="#ft_default" title="ft_Default()"><code>ft_Default()</code></a>
<a href="#ft_descend" title="ft_Descend()"><code>ft_Descend()</code></a>
<a href="#ft_dfclose" title="ft_DFClose()"><code>ft_DFClose()</code></a>
<a href="#ft_dfsetup" title="ft_DFSetup()"><code>ft_DFSetup()</code></a>
<a href="#ft_dispfile" title="ft_DispFile()"><code>ft_DispFile()</code></a>
<a href="#ft_dispmsg" title="ft_DispMsg()"><code>ft_DispMsg()</code></a>
<a href="#ft_dosver" title="ft_DosVer()"><code>ft_DosVer()</code></a>
<a href="#ft_doy" title="ft_DoY()"><code>ft_DoY()</code></a>
<a href="#ft_dskfree" title="ft_DskFree()"><code>ft_DskFree()</code></a>
<a href="#ft_dsksize" title="ft_DskSize()"><code>ft_DskSize()</code></a>
<a href="#ft_e2d" title="ft_E2D()"><code>ft_E2D()</code></a>
<a href="#ft_easter" title="ft_Easter()"><code>ft_Easter()</code></a>
<a href="#ft_elapmin" title="ft_ElapMin()"><code>ft_ElapMin()</code></a>
<a href="#ft_elapsed" title="ft_Elapsed()"><code>ft_Elapsed()</code></a>
<a href="#ft_eltime" title="ft_ElTime()"><code>ft_ElTime()</code></a>
<a href="#ft_esccode" title="ft_EscCode()"><code>ft_EscCode()</code></a>
<a href="#ft_fappend" title="ft_FAppend()"><code>ft_FAppend()</code></a>
<a href="#ft_fbof" title="ft_FBof()"><code>ft_FBof()</code></a>
<a href="#ft_fday" title="ft_FDay()"><code>ft_FDay()</code></a>
<a href="#ft_fdelete" title="ft_FDelete()"><code>ft_FDelete()</code></a>
<a href="#ft_feof" title="ft_FEof()"><code>ft_FEof()</code></a>
<a href="#ft_ferror" title="ft_FError()"><code>ft_FError()</code></a>
<a href="#ft_fgobot" title="ft_FGoBot()"><code>ft_FGoBot()</code></a>
<a href="#ft_fgoto" title="ft_FGoto()"><code>ft_FGoto()</code></a>
<a href="#ft_fgotop" title="ft_FGoTop()"><code>ft_FGoTop()</code></a>
<a href="#ft_fill" title="ft_Fill()"><code>ft_Fill()</code></a>
<a href="#ft_findith" title="ft_FindITh()"><code>ft_FindITh()</code></a>
<a href="#ft_finsert" title="ft_FInsert()"><code>ft_FInsert()</code></a>
<a href="#ft_floptst" title="ft_FlopTst()"><code>ft_FlopTst()</code></a>
<a href="#ft_flastre" title="ft_FLastRe()"><code>ft_FLastRe()</code></a>
<a href="#ft_freadln" title="ft_FReadLn()"><code>ft_FReadLn()</code></a>
<a href="#ft_frecno" title="ft_FRecNo()"><code>ft_FRecNo()</code></a>
<a href="#ft_fselect" title="ft_FSelect()"><code>ft_FSelect()</code></a>
<a href="#ft_fskip" title="ft_FSkip()"><code>ft_FSkip()</code></a>
<a href="#ft_fuse" title="ft_FUse()"><code>ft_FUse()</code></a>
<a href="#ft_fwriteln" title="ft_FWriteLn()"><code>ft_FWriteLn()</code></a>
<a href="#ft_gcd" title="ft_GCD()"><code>ft_GCD()</code></a>
<a href="#ft_gete" title="ft_GetE()"><code>ft_GetE()</code></a>
<a href="#ft_getmode" title="ft_GetMode()"><code>ft_GetMode()</code></a>
<a href="#ft_getvcur" title="ft_GetVCur()"><code>ft_GetVCur()</code></a>
<a href="#ft_getvpg" title="ft_GetVPg()"><code>ft_GetVPg()</code></a>
<a href="#ft_hex2dec" title="ft_Hex2Dec()"><code>ft_Hex2Dec()</code></a>
<a href="#ft_inp" title="ft_inp()"><code>ft_inp()</code></a>
<a href="#ft_int86" title="ft_int86()"><code>ft_int86()</code></a>
<a href="#ft_iamidle" title="ft_IAmIdle()"><code>ft_IAmIdle()</code></a>
<a href="#ft_idle" title="ft_Idle()"><code>ft_Idle()</code></a>
<a href="#ft_invclr" title="ft_InvClr()"><code>ft_InvClr()</code></a>
<a href="#ft_isbit" title="ft_IsBit()"><code>ft_IsBit()</code></a>
<a href="#ft_isbiton" title="ft_IsBitOn()"><code>ft_IsBitOn()</code></a>
<a href="#ft_isprint" title="ft_IsPrint()"><code>ft_IsPrint()</code></a>
<a href="#ft_isshare" title="ft_IsShare()"><code>ft_IsShare()</code></a>
<a href="#ft_lastkey" title="ft_LastKey()"><code>ft_LastKey()</code></a>
<a href="#ft_lday" title="ft_LDay()"><code>ft_LDay()</code></a>
<a href="#ft_linked" title="ft_Linked()"><code>ft_Linked()</code></a>
<a href="#ft_madd" title="ft_MAdd()"><code>ft_MAdd()</code></a>
<a href="#ft_mbutprs" title="ft_MButPrs()"><code>ft_MButPrs()</code></a>
<a href="#ft_mbutrel" title="ft_MButRel()"><code>ft_MButRel()</code></a>
<a href="#ft_mconoff" title="ft_MCOnOff()"><code>ft_MCOnOff()</code></a>
<a href="#ft_mcursor" title="ft_MCursor()"><code>ft_MCursor()</code></a>
<a href="#ft_mdblclk" title="ft_MDblClk()"><code>ft_MDblClk()</code></a>
<a href="#ft_mdefcrs" title="ft_MDefCrs()"><code>ft_MDefCrs()</code></a>
<a href="#ft_menu1" title="ft_Menu1()"><code>ft_Menu1()</code></a>
<a href="#ft_menu2" title="ft_Menu2()"><code>ft_Menu2()</code></a>
<a href="#ft_menuto" title="ft_MenuTo()"><code>ft_MenuTo()</code></a>
<a href="#ft_metaph" title="ft_Metaph()"><code>ft_Metaph()</code></a>
<a href="#ft_mgetcoord" title="ft_MGetCoord()"><code>ft_MGetCoord()</code></a>
<a href="#ft_mgetpage" title="ft_MGetPage()"><code>ft_MGetPage()</code></a>
<a href="#ft_mgetpos" title="ft_MGetPos()"><code>ft_MGetPos()</code></a>
<a href="#ft_mgetsens" title="ft_MGetSens()"><code>ft_MGetSens()</code></a>
<a href="#ft_mgetx" title="ft_MGetX()"><code>ft_MGetX()</code></a>
<a href="#ft_mgety" title="ft_MGetY()"><code>ft_MGetY()</code></a>
<a href="#ft_mhidecrs" title="ft_MHideCrs()"><code>ft_MHideCrs()</code></a>
<a href="#ft_mil2civ" title="ft_Mil2Civ()"><code>ft_Mil2Civ()</code></a>
<a href="#ft_mil2min" title="ft_Mil2Min()"><code>ft_Mil2Min()</code></a>
<a href="#ft_min2dhm" title="ft_Min2Dhm()"><code>ft_Min2Dhm()</code></a>
<a href="#ft_min2mil" title="ft_Min2Mil()"><code>ft_Min2Mil()</code></a>
<a href="#ft_minit" title="ft_MInit()"><code>ft_MInit()</code></a>
<a href="#ft_minregion" title="ft_MInRegion()"><code>ft_MInRegion()</code></a>
<a href="#ft_mkdir" title="ft_MkDir()"><code>ft_MkDir()</code></a>
<a href="#ft_mmickeys" title="ft_MMickeys()"><code>ft_MMickeys()</code></a>
<a href="#ft_month" title="ft_Month()"><code>ft_Month()</code></a>
<a href="#ft_mreset" title="ft_MReset()"><code>ft_MReset()</code></a>
<a href="#ft_msetcoord" title="ft_MSetCoord()"><code>ft_MSetCoord()</code></a>
<a href="#ft_msetpage" title="ft_MSetPage()"><code>ft_MSetPage()</code></a>
<a href="#ft_msetpos" title="ft_MSetPos()"><code>ft_MSetPos()</code></a>
<a href="#ft_msetsens" title="ft_MSetSens()"><code>ft_MSetSens()</code></a>
<a href="#ft_mshowcrs" title="ft_MShowCrs()"><code>ft_MShowCrs()</code></a>
<a href="#ft_mversion" title="ft_MVersion()"><code>ft_MVersion()</code></a>
<a href="#ft_mxlimit" title="ft_MXLimit()"><code>ft_MXLimit()</code></a>
<a href="#ft_mylimit" title="ft_MYLimit()"><code>ft_MYLimit()</code></a>
<a href="#ft_n2color" title="ft_N2Color()"><code>ft_N2Color()</code></a>
<a href="#ft_netpv" title="ft_NetPV()"><code>ft_NetPV()</code></a>
<a href="#ft_nooccur" title="ft_NoOccur()"><code>ft_NoOccur()</code></a>
<a href="#ft_ntow" title="ft_NToW()"><code>ft_NToW()</code></a>
<a href="#ft_numlock" title="ft_NumLock()"><code>ft_NumLock()</code></a>
<a href="#ft_nwlstat" title="ft_NWLStat()"><code>ft_NWLStat()</code></a>
<a href="#ft_nwsemclose" title="ft_NWSemClose()"><code>ft_NWSemClose()</code></a>
<a href="#ft_nwsemex" title="ft_NWSemEx()"><code>ft_NWSemEx()</code></a>
<a href="#ft_nwsemlock" title="ft_NWSemLock()"><code>ft_NWSemLock()</code></a>
<a href="#ft_nwsemopen" title="ft_NWSemOpen()"><code>ft_NWSemOpen()</code></a>
<a href="#ft_nwsemsig" title="ft_NWSemSig()"><code>ft_NWSemSig()</code></a>
<a href="#ft_nwsemunlock" title="ft_NWSemUnlock()"><code>ft_NWSemUnlock()</code></a>
<a href="#ft_nwsemwait" title="ft_NWSemWait()"><code>ft_NWSemWait()</code></a>
<a href="#ft_nwuid" title="ft_NWUID()"><code>ft_NWUID()</code></a>
<a href="#ft_outp" title="ft_outp()"><code>ft_outp()</code></a>
<a href="#ft_onidle" title="ft_OnIdle()"><code>ft_OnIdle()</code></a>
<a href="#ft_ontick" title="ft_OnTick()"><code>ft_OnTick()</code></a>
<a href="#ft_origin" title="ft_Origin()"><code>ft_Origin()</code></a>
<a href="#ft_pchr" title="ft_PChr()"><code>ft_PChr()</code></a>
<a href="#ft_peek" title="ft_Peek()"><code>ft_Peek()</code></a>
<a href="#ft_pegs" title="ft_Pegs()"><code>ft_Pegs()</code></a>
<a href="#ft_pending" title="ft_Pending()"><code>ft_Pending()</code></a>
<a href="#ft_pickday" title="ft_PickDay()"><code>ft_PickDay()</code></a>
<a href="#ft_poke" title="ft_Poke()"><code>ft_Poke()</code></a>
<a href="#ft_popvid" title="ft_PopVid()"><code>ft_PopVid()</code></a>
<a href="#ft_prompt" title="ft_Prompt()"><code>ft_Prompt()</code></a>
<a href="#ft_proper" title="ft_Proper()"><code>ft_Proper()</code></a>
<a href="#ft_prtscr" title="ft_PrtScr()"><code>ft_PrtScr()</code></a>
<a href="#ft_pushvid" title="ft_PushVid()"><code>ft_PushVid()</code></a>
<a href="#ft_putkey" title="ft_PutKey()"><code>ft_PutKey()</code></a>
<a href="#ft_qtr" title="ft_Qtr()"><code>ft_Qtr()</code></a>
<a href="#ft_rand1" title="ft_Rand1()"><code>ft_Rand1()</code></a>
<a href="#ft_rat2" title="ft_RAt2()"><code>ft_RAt2()</code></a>
<a href="#ft_reboot" title="ft_Reboot()"><code>ft_Reboot()</code></a>
<a href="#ft_restarr" title="ft_RestArr()"><code>ft_RestArr()</code></a>
<a href="#ft_restatt" title="ft_RestAtt()"><code>ft_RestAtt()</code></a>
<a href="#ft_restsets" title="ft_RestSets()"><code>ft_RestSets()</code></a>
<a href="#ft_revattr" title="ft_RevAttr()"><code>ft_RevAttr()</code></a>
<a href="#ft_revchr" title="ft_RevChr()"><code>ft_RevChr()</code></a>
<a href="#ft_rgnstack" title="ft_RgnStack()"><code>ft_RgnStack()</code></a>
<a href="#ft_rmdir" title="ft_RmDir()"><code>ft_RmDir()</code></a>
<a href="#ft_round" title="ft_Round()"><code>ft_Round()</code></a>
<a href="#ft_rstrgn" title="ft_RstRgn()"><code>ft_RstRgn()</code></a>
<a href="#ft_savearr" title="ft_SaveArr()"><code>ft_SaveArr()</code></a>
<a href="#ft_saveatt" title="ft_SaveAtt()"><code>ft_SaveAtt()</code></a>
<a href="#ft_savesets" title="ft_SaveSets()"><code>ft_SaveSets()</code></a>
<a href="#ft_savrgn" title="ft_SavRgn()"><code>ft_SavRgn()</code></a>
<a href="#ft_scancode" title="ft_ScanCode()"><code>ft_ScanCode()</code></a>
<a href="#ft_setattr" title="ft_SetAttr()"><code>ft_SetAttr()</code></a>
<a href="#ft_setcentury" title="ft_SetCentury()"><code>ft_SetCentury()</code></a>
<a href="#ft_setdate" title="ft_SetDate()"><code>ft_SetDate()</code></a>
<a href="#ft_setmode" title="ft_SetMode()"><code>ft_SetMode()</code></a>
<a href="#ft_setrate" title="ft_SetRate()"><code>ft_SetRate()</code></a>
<a href="#ft_settime" title="ft_SetTime()"><code>ft_SetTime()</code></a>
<a href="#ft_setvcur" title="ft_SetVCur()"><code>ft_SetVCur()</code></a>
<a href="#ft_setvpg" title="ft_SetVPg()"><code>ft_SetVPg()</code></a>
<a href="#ft_shadow" title="ft_Shadow()"><code>ft_Shadow()</code></a>
<a href="#ft_shift" title="ft_Shift()"><code>ft_Shift()</code></a>
<a href="#ft_sinkey" title="ft_SInkey()"><code>ft_SInkey()</code></a>
<a href="#ft_sleep" title="ft_Sleep()"><code>ft_Sleep()</code></a>
<a href="#ft_sqzn" title="ft_Sqzn()"><code>ft_Sqzn()</code></a>
<a href="#ft_stod" title="ft_SToD()"><code>ft_SToD()</code></a>
<a href="#ft_sys2mil" title="ft_Sys2Mil()"><code>ft_Sys2Mil()</code></a>
<a href="#ft_sysmem" title="ft_SysMem()"><code>ft_SysMem()</code></a>
<a href="#ft_tempfil" title="ft_TempFil()"><code>ft_TempFil()</code></a>
<a href="#ft_unsqzn" title="ft_Unsqzn()"><code>ft_Unsqzn()</code></a>
<a href="#ft_vidstr" title="ft_VidStr()"><code>ft_VidStr()</code></a>
<a href="#ft_week" title="ft_Week()"><code>ft_Week()</code></a>
<a href="#ft_workdays" title="ft_Workdays()"><code>ft_Workdays()</code></a>
<a href="#ft_woy" title="ft_WoY()"><code>ft_WoY()</code></a>
<a href="#ft_wrtchr" title="ft_WrtChr()"><code>ft_WrtChr()</code></a>
<a href="#ft_xbox" title="ft_XBox()"><code>ft_XBox()</code></a>
<a href="#ft_xtoy" title="ft_XToY()"><code>ft_XToY()</code></a>
<a href="#ft_year" title="ft_Year()"><code>ft_Year()</code></a>
</aside>
<main>
<section>
<h4><a href="#ft_aaddition" class="d-id" id="ft_aaddition" title="∞"><code>ft_AAddition()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/aading.prg#L11" class="d-so" title="contrib/hbnf/aading.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_AAddition">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_AAddition">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/aading.txt">Improve this doc</a></span></h4>
<div class="d-ol">Add elements unique of source array to target array</div>
<div class="d-d">Syntax</div>
<div class="d-sy d-sym">
<pre><code>ft_AAddition( <aList1>, <aList2> [, <lTrimmer> [, <lCaseSens> ] ] ) ;
→ aNewArray
</code></pre>
</div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>aList1</code> is the primary array.</div>
<div><code>aList2</code> is the secondary array.</div>
<div><code>lTrimmer</code> is a logical value denoting whether leading or</div>
<div>trailing spaces should be included in the comparison. If <code>.T.</code>, then ignores spaces in comparison, defaults to <code>.T.</code>, <code>.F.</code> includes spaces.</div>
<div><code>lCaseSens</code> is a logical value denoting case sensitivity.</div>
<div>If <code>.T.</code>, then comparison is sensitive to case, defaults to <code>.T.</code>, <code>.F.</code> ignores case.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">An array of the union of <code>aList1</code> and <code>aList2</code>.</div>
<div class="d-d">Description</div>
<div class="d-it">This function will add the elements unique of <code>aList2</code> with <code>aList1</code>. It returns a new array including all the elements of <code>aList1</code> plus the unique elements of <code>aList2</code>.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL aList1 := { "apple", "orange", "pear" }
LOCAL aList2 := { "apple ", "banana", "PEAR" }
// ignores spaces, sensitive to case
? hb_ValToExp( ft_AAddition( aList1, aList2 ) )
// --> { "apple", "orange", "pear", "banana", "PEAR" }
// ignores spaces, not sensitive to case
? hb_ValToExp( ft_AAddition( aList1, aList2, , .F. ) )
// --> { "apple", "orange", "pear", "banana" }
// sensitive to spaces, not sensitive to case
? hb_ValToExp( ft_AAddition( aList1, aList2, .F. , .F. ) )
// --> { "apple", "orange", "pear", "apple ", "banana" }
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
</section>
<section>
<h4><a href="#ft_aavg" class="d-id" id="ft_aavg" title="∞"><code>ft_AAvg()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/aavg.prg#L15" class="d-so" title="contrib/hbnf/aavg.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_AAvg">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_AAvg">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/aavg.txt">Improve this doc</a></span></h4>
<div class="d-ol">Average numeric values in an array</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_AAvg( <aArray> [, <nStartIndex> [, <nEndIndex> ] ] ) → nAverage</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>aArray</code> is the array containing the elements to be averaged.</div>
<div><code>nStartIndex</code> is the first array item to include, defaults to first element.</div>
<div><code>nEndIndex</code> is the last array element to include, defaults to all elements.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The average of the specified array elements.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>This function is used to get a numeric average of selected or all elements of an array.</div>
<div><p>This routine requires <code><a href="#ft_asum">ft_ASum()</a></code>.</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL aSubTotals := { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
? ft_AAvg( aSubTotals ) // Get Average of Entire Array
? ft_AAvg( aSubTotals, 5 ) // Get Average of 5th Element On
? ft_AAvg( aSubTotals, , 10 ) // Get Average of 1st 10 Elements
? ft_AAvg( aSubTotals, 5, 10 ) // Get Average of Elements 5-10
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
</section>
<section>
<h4><a href="#ft_adessort" class="d-id" id="ft_adessort" title="∞"><code>ft_ADesSort()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/adessort.prg#L15" class="d-so" title="contrib/hbnf/adessort.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_ADesSort">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_ADesSort">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/adessort.txt">Improve this doc</a></span></h4>
<div class="d-ol">Sort an array in descending order</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_ADesSort( <aArray> [, <nStartIndex> [, <nEndIndex> ] ] ) → aSorted</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>aArray</code> is the array to be sorted</div>
<div><code>nStartIndex</code> is the first array item to include in the sort, defaults to first element</div>
<div><code>nEndIndex</code> is the last array element to include in the sort, defaults to all elements</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The array, sorted in descending order.</div>
<div class="d-d">Description</div>
<div class="d-it">This function is used to sort an array in descending order, i.e., Z-A</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL aNames := { "apple", "orange", "pear", "banana", "cherry", "mango" }
ft_ADesSort( aNames, 2, 4 ) // Sort Elements 1-3
? hb_ValToExp( aNames )
ft_ADesSort( aNames, 5 ) // Sort from the 5th Element On
? hb_ValToExp( aNames )
ft_ADesSort( aNames, , 2 ) // Sort the 1st 3 Elements
? hb_ValToExp( aNames )
ft_ADesSort( aNames ) // Sort the Entire Array
? hb_ValToExp( aNames )
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
</section>
<section>
<h4><a href="#ft_aemaxlen" class="d-id" id="ft_aemaxlen" title="∞"><code>ft_AEMaxLen()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/aemaxlen.prg#L11" class="d-so" title="contrib/hbnf/aemaxlen.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_AEMaxLen">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_AEMaxLen">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/aemaxlen.txt">Improve this doc</a></span></h4>
<div class="d-ol">Find longest element within an array</div>
<div class="d-d">Syntax</div>
<div class="d-sy d-sym">
<pre><code>ft_AEMaxLen( <aArray> [, <nDimension> [, <nStart> [, <nCount> ] ] ] ) ;
→ nMaxlen
</code></pre>
</div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>aArray</code> is the array containing the elements to be measured.</div>
<div><code>nDimension</code> is the array dimension to be measured,</div>
<div>defaults to first dimension.</div>
<div><code>nStart</code> is the starting array element to include,</div>
<div>defaults to first array element.</div>
<div><code>nCount</code> is the number of array elements to process from</div>
<div>from <code>nStart</code>, defaults to remaining elements in array.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The length of the longest size element of an array.</div>
<div class="d-d">Description</div>
<div class="d-it">This function will measure each element of an array dimension and return the longest element.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">// FIXME
? ft_AEMaxLen( aArray ) // Measure the 1st dimension of an Array
? ft_AEMaxLen( aArray, 2 ) // Measure the 2nd dimension of an Array
? ft_AEMaxLen( aArray, 2, , 9 ) // Measure Elements 1-9 of the 2nd dimension or subarray
? ft_AEMaxLen( aArray, 3, 5, 9 ) // Measure Elements 5-9 of the 3rd dimension or subarray
? ft_AEMaxLen( aArray, 3, 5 ) // Measure Elements 5 to last in the 3rd dimension or subarray
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#ft_aeminlen">ft_AEMinLen()</a></code></div>
</section>
<section>
<h4><a href="#ft_aeminlen" class="d-id" id="ft_aeminlen" title="∞"><code>ft_AEMinLen()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/aeminlen.prg#L11" class="d-so" title="contrib/hbnf/aeminlen.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_AEMinLen">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_AEMinLen">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/aeminlen.txt">Improve this doc</a></span></h4>
<div class="d-ol">Find shortest element within an array</div>
<div class="d-d">Syntax</div>
<div class="d-sy d-sym">
<pre><code>ft_AEMinLen( <aArray> [, <nDimension> [, <nStart> [, <nCount> ] ] ] )
→ nMinlen
</code></pre>
</div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>aArray</code> is the array containing the elements to be measured.</div>
<div><code>nDimension</code> is the array dimension to be measured,</div>
<div>defaults to first dimension.</div>
<div><code>nStart</code> is the starting array element to include,</div>
<div>defaults to first array element.</div>
<div><code>nCount</code> is the number of array elements to process from</div>
<div>from <code>nStart</code>, defaults to remaining elements in array.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The length of the shortest size element of an array.</div>
<div class="d-d">Description</div>
<div class="d-it">This function will measure each element of an array dimension and return the shortest element.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">// FIXME
? ft_AEMinLen( aArray ) // Measure the 1st dimension of an Array
? ft_AEMinLen( aArray, 2 ) // Measure the 2nd dimension of an Array
? ft_AEMinLen( aArray, 2, , 9 ) // Measure Elements 1-9 of 2nd dimension
? ft_AEMinLen( aArray, 3, 5, 9 ) // Measure Elements 5-9 of 3rd dimension
? ft_AEMinLen( aArray, 3, 5 ) // Measure Elements 5 to end of 3rd dimension
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#ft_aemaxlen">ft_AEMaxLen()</a></code></div>
</section>
<section>
<h4><a href="#ft_amedian" class="d-id" id="ft_amedian" title="∞"><code>ft_AMedian()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/amedian.prg#L16" class="d-so" title="contrib/hbnf/amedian.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_AMedian">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_AMedian">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/amedian.txt">Improve this doc</a></span></h4>
<div class="d-ol">Find middle value in array, or average of two middle values</div>
<div class="d-d">Syntax</div>
<div class="d-sy d-sym">
<pre><code>ft_AMedian( <aArray> [, <nStart> [, <nEnd> ] ] )
→ nMedian
</code></pre>
</div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>aArray</code> is the array containing the elements to be averaged.</div>
<div><code>nStart</code> is the first array element to include, defaults to first element.</div>
<div><code>nEnd</code> is the last array element to include, defaults to last element.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The median average of the array elements</div>
<div class="d-d">Description</div>
<div class="d-it">This function sorts the elements of a numeric array and then returns the value in the middle element of the sorted array. If there is no exact middle value, then it returns the average of the two middle values. Half of the elements are > median and half are < median. A median average may more reflect a more useful average when there are extreme values in the set.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL aArray := { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
? ft_AMedian( aArray ) // Return Median for entire array
? ft_AMedian( aArray, 2 ) // Return Median for elements from 2 to end
? ft_AMedian( aArray, , 9 ) // Return Median for 1st 9 elements
? ft_AMedian( aArray, 8, 40 ) // Return Median for elements 8 to 40
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
</section>
<section>
<h4><a href="#ft_anomatches" class="d-id" id="ft_anomatches" title="∞"><code>ft_ANoMatches()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/anomatch.prg#L15" class="d-so" title="contrib/hbnf/anomatch.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_ANoMatches">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_ANoMatches">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/anomatch.txt">Improve this doc</a></span></h4>
<div class="d-ol">Find the number of array elements meeting a condition</div>
<div class="d-d">Syntax</div>
<div class="d-sy d-sym">
<pre><code>ft_ANoMatches( <aArray>, <bCompareBlock> ;
[, <nStartIndex> [, <nEndIndex> ] ] ) → nNoOfMatches
</code></pre>
</div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>aArray</code> is the array to be searched</div>
<div><code>bCompareBlock</code> is a code block containing the expression for the array elements to be tested with. Each element is passed as a parameter to the block. If the block returns <code>.T.</code>, the number of matches will be incremented by one.</div>
<div><code>nStartIndex</code> is the first array item to include in the search, defaults to first element.</div>
<div><code>nEndIndex</code> is the last array element to include in the search, defaults to all elements.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The number of elements that cause the code block to return <code>.T.</code></div>
<div class="d-d">Description</div>
<div class="d-it">This function returns the number of array elements that, when passed to the supplied code block, cause that code block to return a <code>.T.</code> value.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">// FIXME
// Search the Entire Array
? ft_ANoMatches( aTries, {| x | x <= 100 } )
// Search from the 5th Element On
? ft_ANoMatches( aCodes, {| x | Upper( x ) == cCurrentCode }, 5 )
// Search the 1st 10 Elements
? ft_ANoMatches( aDates, {| x | IS_BETWEEN( Date() - 7, x, Date() + 7 ) }, 10 )
// Search Elements 5-10
? ft_ANoMatches( aNames, {| x | x <= cLastGoodName }, 5, 10 )
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
</section>
<section>
<h4><a href="#ft_aredit" class="d-id" id="ft_aredit" title="∞"><code>ft_ArEdit()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/aredit.prg#L40" class="d-so" title="contrib/hbnf/aredit.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_ArEdit">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_ArEdit">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/aredit.txt">Improve this doc</a></span></h4>
<div class="d-ol">2 dimensional array editing function using TBrowse</div>
<div class="d-d">Syntax</div>
<div class="d-sy d-sym">
<pre><code>ft_ArEdit( <nTop>, <nLeft>, <nBottom>, <nRight>, <Array Name>, ;
<nElem>, <aHeadings>, <aBlocks> [, <bGetFunc> ] ) → xElement
</code></pre>
</div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>nTop</code>, <code>nLeft</code>, <code>nBottom</code>, <code>nRight</code> are coordinates for TBrowse</div>
<div><code>Array Name</code> is name of 2 dimensional to array edit</div>
<div><code>nElem</code> is pointer for element in array</div>
<div><code>aHeadings</code> is array of column headings</div>
<div><code>aBlocks</code> is array of blocks describing each array element</div>
<div>[ <code>bGetFunc</code> ] is get editing function for handling individual elements</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">Value of element positioned on when exit <code>ft_ArEdit()</code> The type of this value depends on what is displayed.</div>
<div class="d-d">Description</div>
<div class="d-it">This function allows you to position yourself in an array, add and delete rows with the <span class="d-key">F7</span> and <span class="d-key">F8</span> keys, and pass a UDF with information to edit the individual gets.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL i, ar[ 3 ][ 26 ], aBlocks[ 3 ], aHeadings[ 3 ]
LOCAL nElem := 1, bGetFunc
// This example will allow you to browse a 2 dimensional array
// But you cannot edit it since there is no GetBlock UDF
// It allows the user to hit <Enter> to select an element or <Esc>
// to return 0
ft_ArEdit( 3, 5, 18, 75, ar, @nElem, aHeadings, aBlocks )
// This second example shows how to edit a 2 dimensional array
// as might be done to edit an invoice
// Set up two dimensional array "ar"
FOR i := 1 TO 26
ar[ 1 ][ i ] := i // 1 -> 26 Numeric
ar[ 2 ][ i ] := Chr( Asc( "A" ) + i - 1 ) // "A" -> "Z" Character
ar[ 3 ][ i ] := Chr( Asc( "Z" ) - i + 1 ) // "Z" -> "A" Character
NEXT
// set up aHeadings Array for column headings
aHeadings := { "Numbers", "Letters", "Reverse" }
// Need to set up individual array blocks for each TBrowse column
aBlocks[ 1 ] := {|| Str( ar[ 1 ][ nElem ], 2 ) } // prevent default 10 spaces
aBlocks[ 2 ] := {|| ar[ 2 ][ nElem ] }
aBlocks[ 3 ] := {|| ar[ 3 ][ nElem ] }
// set up TestGet() as the passed Get Function so ft_ArEdit() knows how
// to edit the individual gets.
bGetFunc := {| b, ar, nDim, nElem | TestGet( b, ar, nDim, nElem ) }
SetColor( "N/W, W/N, , , W/N" )
CLS
ft_ArEdit( 3, 5, 18, 75, ar, @nElem, aHeadings, aBlocks, bGetFunc )
STATIC FUNCTION TestGet( ... )
RETURN .T.
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
</section>
<section>
<h4><a href="#ft_asum" class="d-id" id="ft_asum" title="∞"><code>ft_ASum()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/asum.prg#L16" class="d-so" title="contrib/hbnf/asum.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_ASum">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_ASum">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/asum.txt">Improve this doc</a></span></h4>
<div class="d-ol">Sum the elements of an array</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_ASum( <aArray> [, <nStartIndex> [, <nEndIndex> ] ] ) → nSum</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>aArray</code> is the array containing the elements to be summed.</div>
<div><code>nStartIndex</code> is the first array item to include, defaults to first element.</div>
<div><code>nEndIndex</code> is the last array element to include, defaults to all elements.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The sum of the elements of the array or the lengths of the elements.</div>
<div class="d-d">Description</div>
<div class="d-it">This function is to sum the elements of a numeric array or to sum the lengths of a character array.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL aSubTotals := { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
? ft_ASum( aSubTotals ) // Sum the Entire Array
? ft_ASum( aSubTotals, 5 ) // Sum from the 5th Element On
? ft_ASum( aSubTotals, , 10 ) // Sum the 1st 10 Elements
? ft_ASum( aSubTotals, 5, 10 ) // Sum Elements 5-10
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
</section>
<section>
<h4><a href="#ft_restarr" class="d-id" id="ft_restarr" title="∞"><code>ft_RestArr()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/savearr.prg#L75" class="d-so" title="contrib/hbnf/savearr.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_RestArr">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_RestArr">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/savearr.txt">Improve this doc</a></span></h4>
<div class="d-ol">Restore a Clipper array from a disc file</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_RestArr( <cFileName>, <nErrorCode> ) → aArray</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cFileName</code> is a DOS file name.</div>
<div><code>nErrorCode</code> will return any DOS file error.</div>
<div>All arguments are required.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">Return an array variable.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p><code>ft_RestArr()</code> restores an array which was saved to a disc file using <code><a href="#ft_savearr">ft_SaveArr()</a></code>.</div>
<div><p>[1992-10-01 Librarian note:</div>
<div><p>This function does not appear to work with multi-dimensional arrays. If you'd care to modify it to support this feature, please do and send it to Glenn Scott 71620,1521.]</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL aArray := { ;
{ "Invoice 1", 0d19910415, 1234.32, .T. }, ;
{ "Invoice 2", Date(), 234.98, .F. }, ;
{ "Invoice 3", Date() + 1, 0, .T. } }
LOCAL nErrorCode := 0, aSave
ft_SaveArr( aArray, "invoice.dat", @nErrorCode )
IF nErrorCode == 0
aSave := ft_RestArr( "invoice.dat", @nErrorCode )
IF nErrorCode != 0
? "Error restoring array"
ENDIF
ELSE
? "Error writing array"
ENDIF
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#ft_savearr">ft_SaveArr()</a></code></div>
</section>
<section>
<h4><a href="#ft_savearr" class="d-id" id="ft_savearr" title="∞"><code>ft_SaveArr()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/savearr.prg#L27" class="d-so" title="contrib/hbnf/savearr.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_SaveArr">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_SaveArr">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/savearr.txt">Improve this doc</a></span></h4>
<div class="d-ol">Save Clipper array to a disc file.</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_SaveArr( <aArray>, <cFileName>, <nErrorCode> ) → lRet</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>aArray</code> is any Clipper array except those containing compiled code blocks.</div>
<div><code>cFileName</code> is a DOS file name.</div>
<div><code>nErrorCode</code> will return any DOS file error.</div>
<div>All arguments are required.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>.F.</code> if there was a DOS file error or the array contained code blocks, otherwise returns <code>.T.</code></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p><code>ft_SaveArr()</code> saves any Clipper array, except those containing compiled code blocks, to a disc file. The array can be restored from the disc file using <code><a href="#ft_restarr">ft_RestArr()</a></code>.</div>
<div><p>[1992-10-01 Librarian note:</div>
<div><p>This function does not appear to work with multi-dimensional arrays. If you'd care to modify it to support this feature, please do and send it to Glenn Scott 71620,1521.]</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL aArray := { ;
{ "Invoice 1", 0d19910415, 1234.32, .T. }, ;
{ "Invoice 2", Date(), 234.98, .F. }, ;
{ "Invoice 3", Date() + 1, 0, .T. } }
LOCAL nErrorCode := 0, aSave
ft_SaveArr( aArray, "invoice.dat", @nErrorCode )
IF nErrorCode == 0
aSave := ft_RestArr( "invoice.dat", @nErrorCode )
IF nErrorCode != 0
? "Error restoring array"
ENDIF
ELSE
? "Error writing array"
ENDIF
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Array</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#ft_restarr">ft_RestArr()</a></code></div>
</section>
<section>
<h4><a href="#ft_byt2bit" class="d-id" id="ft_byt2bit" title="∞"><code>ft_Byt2Bit()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/byt2bit.prg#L14" class="d-so" title="contrib/hbnf/byt2bit.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_Byt2Bit">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_Byt2Bit">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/byt2bit.txt">Improve this doc</a></span></h4>
<div class="d-ol">Convert byte to string of 1's and 0's</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_Byt2Bit( <cByte> ) → cBitPattern</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>cByte</code> is the byte to convert.</div>
<div class="d-d">Returns</div>
<div class="d-it">9-character string, consisting of 1's and 0's, representing bits 0 through 7 of parameter byte, with space between bits 3 and 4. Returns <code>NIL</code> if parameters are faulty.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Can be used to show results of bit manipulation, both before and after. Binary representation follows right-to-left convention of bit position numbering, 0 through 7. Space between high and low nibbles for clarity and easy comparison to hexadecimal notation.</div>
<div><p>This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write <code>.c</code> version and use the Clipper Extend system.</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">// These three code lines perform a bitwise AND on bytes with values of
// hb_BChar( 20 ) and hb_BChar( 36 ), and deliver the result as a string
// in binary (bit) format.
? ft_Byt2Bit( hb_BChar( 20 ) ) // --> "00010100"
? ft_Byt2Bit( hb_BChar( 36 ) ) // --> "00100100"
? ft_Byt2Bit( ft_ByteAnd( hb_BChar( 20 ), hb_BChar( 36 ) ) ) // --> "00000100"
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Conversion</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#ft_byt2hex">ft_Byt2Hex()</a></code></div>
</section>
<section>
<h4><a href="#ft_byt2hex" class="d-id" id="ft_byt2hex" title="∞"><code>ft_Byt2Hex()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/byt2hex.prg#L14" class="d-so" title="contrib/hbnf/byt2hex.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_Byt2Hex">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_Byt2Hex">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/byt2hex.txt">Improve this doc</a></span></h4>
<div class="d-ol">Convert byte to hexadecimal version of its binary value</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_Byt2Hex( cByte ) → cHexValue</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>cByte</code> is the byte to convert.</div>
<div class="d-d">Returns</div>
<div class="d-it">Three-character string, consisting of two digits of hexadecimal notation and letter <code>h</code> to signify hex. Returns <code>NIL</code> if parameters are faulty.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Can be used to show results of bit manipulation, both before and after.</div>
<div><p>This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write <code>.c</code> version and use the Clipper Extend system.</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">// These three code lines perform a bitwise AND on bytes with values of
// hb_BChar( 20 ) and hb_BChar( 36 ), and deliver the result as a string
// in hexadecimal format, using 'h' to signify hexadecimal.
? ft_Byt2Hex( hb_BChar( 20 ) ) // --> "14h"
? ft_Byt2Hex( hb_BChar( 36 ) ) // --> "24h"
? ft_Byt2Hex( ft_ByteAnd( hb_BChar( 20 ), hb_BChar( 36 ) ) ) // --> "04h"
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Conversion</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#ft_byt2bit">ft_Byt2Bit()</a></code></div>
</section>
<section>
<h4><a href="#ft_d2e" class="d-id" id="ft_d2e" title="∞"><code>ft_D2E()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/d2e.prg#L15" class="d-so" title="contrib/hbnf/d2e.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_D2E">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_D2E">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/d2e.txt">Improve this doc</a></span></h4>
<div class="d-ol">Convert decimal to scientific notation</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_D2E( <nDec>, <nPrecision> ) → cNumE</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>nDec</code> Decimal number to convert</div>
<div><code>nPrecision</code> Number of decimal places in result.</div>
<div>Defaults to 6 decimal places.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">
<div><code>cNumE</code> A string representing a number in</div>
<div>scientific notation</div>
</div>
<div class="d-d">Description</div>
<div class="d-it">Given a decimal number and the desired precision, a string representing the equivalent in scientific notation is returned.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? ft_D2E( 12.345, 2 ) // --> 1.23E1
? ft_D2E( -12.345, 3 ) // --> -1.235E1
? ft_D2E( 0.00000543, 2 ) // --> 5.43E-6
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Conversion</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#ft_e2d">ft_E2D()</a></code></div>
</section>
<section>
<h4><a href="#ft_dec2bin" class="d-id" id="ft_dec2bin" title="∞"><code>ft_Dec2Bin()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/dectobin.prg#L14" class="d-so" title="contrib/hbnf/dectobin.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_Dec2Bin">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_Dec2Bin">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/dectobin.txt">Improve this doc</a></span></h4>
<div class="d-ol">Convert decimal to binary</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_Dec2Bin( <nNum> ) → cBinaryNumber</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>nNum</code> is the numeric expression to be converted.</div>
<div class="d-d">Returns</div>
<div class="d-it">A character string representing <code>nNum</code> in binary format.</div>
<div class="d-d">Description</div>
<div class="d-it">This function can be used in conjunction with any bit-wise operations.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? ft_Dec2Bin( 255 ) // --> "11111111"
? ft_Dec2Bin( 2 ) // --> "00000010"
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Conversion</div>
</section>
<section>
<h4><a href="#ft_descend" class="d-id" id="ft_descend" title="∞"><code>ft_Descend()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/descendn.c#L13" class="d-so" title="contrib/hbnf/descendn.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_Descend">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_Descend">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/descendn.txt">Improve this doc</a></span></h4>
<div class="d-ol">Create a descending index key value</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_Descend( <exp> ) → <value></code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>exp</code> is any expression of character, numeric, date, or logical type.</div>
<div class="d-d">Returns</div>
<div class="d-it">The inverse of <code>exp</code></div>
<div class="d-d">Description</div>
<div class="d-it">This function is a replacement for CA-Cl*pper's <code><a href="harbour.html#descend" title="harbour">Descend()</a></code> function, which is known to produce memory corruption occasionally.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? ft_Descend( 1 ) // --> -1
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Conversion</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#ft_xtoy">ft_XToY()</a></code></div>
</section>
<section>
<h4><a href="#ft_e2d" class="d-id" id="ft_e2d" title="∞"><code>ft_E2D()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/e2d.prg#L13" class="d-so" title="contrib/hbnf/e2d.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_E2D">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_E2D">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/e2d.txt">Improve this doc</a></span></h4>
<div class="d-ol">Convert scientific notation string to a decimal</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_E2D( <cNumE> ) → nDec</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>cNumE</code> Scientific notation string to convert</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nDec</code> Decimal number</div>
<div class="d-d">Description</div>
<div class="d-it">Given a string in the format <code>x.yEz</code>, the decimal equivalent is returned.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? ft_E2D( "1.23E1" ) // --> 12.3
? ft_E2D( "-1.235E1" ) // --> -12.35
Set( _SET_DECIMALS, 6 )
? ft_E2D( "5.43E-6" ) // --> 0.00000543
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Conversion</div>
<div class="d-d">See also</div>
<div class="d-it"><code><a href="#ft_d2e">ft_D2E()</a></code></div>
</section>
<section>
<h4><a href="#ft_esccode" class="d-id" id="ft_esccode" title="∞"><code>ft_EscCode()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/prtesc.prg#L14" class="d-so" title="contrib/hbnf/prtesc.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_EscCode">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_EscCode">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/prtesc.txt">Improve this doc</a></span></h4>
<div class="d-ol">Convert Lotus style escape codes</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_EscCode( <cASCII> ) → <cPrinterFormat></code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cASCII</code> is the ASCII representation of the printer control codes in Lotus 123 format (e.g. <code>"\027E"</code> for <code>hb_BChar( 27 ) + "E"</code>)</div>
<div><code>"\nnn"</code> will be converted to <code>hb_BChar( nnn )</code> <code>"\\"</code> will be converted to <code>"\"</code></div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The binary version of an ASCII coded printer setup string.</div>
<div class="d-d">Description</div>
<div class="d-it">This function is useful for allowing the user to enter printer control codes in Lotus-style ASCII format, and then having this function convert that code to the format that the printer needs to receive.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">// FIXME
LOCAL cSetup := "\015" // default = Epson compressed print
UserInput( @cSetup ) // Let user modify setup code
SET DEVICE TO PRINTER // get ready to print
?? ft_EscCode( cSetup ) // Output the converted code
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Conversion</div>
</section>
<section>
<h4><a href="#ft_hex2dec" class="d-id" id="ft_hex2dec" title="∞"><code>ft_Hex2Dec()</code></a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_Hex2Dec">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_Hex2Dec">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/hex2dec.txt">Improve this doc</a></span></h4>
<div class="d-ol">Convert a hex number to decimal</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_Hex2Dec( <cHexNum> ) → nDecNum</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>cHexNum</code> is a character string representing a hex number.</div>
<div class="d-d">Returns</div>
<div class="d-it">A decimal number.</div>
<div class="d-d">Description</div>
<div class="d-it">Converts a hexadecimal number to a <code>BASE</code> 10 decimal number. Useful for using <code><a href="#ft_int86">ft_int86()</a></code>.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">// Converts 21h, the MS-DOS Interrupt, to its decimal equivalent,
// 33, for use by ft_int86().
? ft_Hex2Dex( "21" ) // --> 33
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Conversion</div>
</section>
<section>
<h4><a href="#ft_invclr" class="d-id" id="ft_invclr" title="∞"><code>ft_InvClr()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/invclr.prg#L13" class="d-so" title="contrib/hbnf/invclr.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_InvClr">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_InvClr">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/invclr.txt">Improve this doc</a></span></h4>
<div class="d-ol">Get the inverse of a color</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_InvClr( [ <cDsrdColor> ] ) → cColor</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>cDsrdColor</code> is the color to get the inverse of. Defaults to current color.</div>
<div class="d-d">Returns</div>
<div class="d-it">The inverse of the passed color.</div>
<div class="d-d">Description</div>
<div class="d-it">This function inverts a passed color (in the Clipper format: <code>??/??</code>), e.g., <code>"W/N"</code> is converted to <code>"N/W"</code>.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? ft_InvClr() // Get Inverse of Current Color
? ft_InvClr( "GR/B" ) // Get Inverse of cErrorColor
</code></pre></div></section>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">Tag</div>
<div class="d-it">Conversion</div>
</section>
<section>
<h4><a href="#ft_ntow" class="d-id" id="ft_ntow" title="∞"><code>ft_NToW()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbnf/ntow.prg#L10" class="d-so" title="contrib/hbnf/ntow.prg">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=ft_NToW">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+ft_NToW">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbnf/doc/en/ntow.txt">Improve this doc</a></span></h4>
<div class="d-ol">Translate numeric value to words</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>ft_NToW( <nNumber> ) → cWords</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>nNumber</code> An integer to translate</div>
<div class="d-d">Returns</div>
<div class="d-it">A text string representing <code>nNumber</code></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Translates numeric input to a text string.</div>
<div><p><code>ft_NToW()</code> is intended to be used with integers only. Since I don't know what your application will be, I cannot assume the type of fraction you want returned (ninety nine cents, 99/100, .99, etc). If you want the fraction in words, just pass it as an integer.</div>
<div><p>Do not pass a negative number! Handle negative numbers any way you need to in your code. (i.e.: CR, DB, Negative, Minus, etc.)</div>
<div><p>Also, numeric 0 is returned as a null string. You will need to make a decision how to output it (zero dollars, no dollars, etc).</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL x, cents, string
? ft_NToW( 999 ) // --> "Nine Hundred Ninety Nine"
? ft_NToW( 1000 ) // --> "One Thousand"