-
Notifications
You must be signed in to change notification settings - Fork 3
/
TOOLHELP.RTF
4508 lines (4508 loc) · 196 KB
/
TOOLHELP.RTF
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
{\rtf1\ansi\deff11
{\fonttbl{\f0\fnil Times New Roman;}{\f1\fnil Arial;}{\f2\fmodern Courier New;}{\f3\fnil Symbol;}{\f4\fnil Times;}{\f5\fnil Helvetica;}{\f6\fnil Courier;}{\f7\fnil Geneva;}{\f8\fnil Tms Rmn;}{\f9\fnil Helv;}{\f10\fnil MS Serif;}{\f11\fswiss MS Sans Serif;}{\f12\fnil New York;}{\f13\fnil System;}{\f14\fnil Wingdings;}{\f15\fnil Mincho;}{\f16\fnil Batang;}{\f17\fnil SimSun;}{\f18\fnil PMingLiU;}{\f19\fnil Gothic;}{\f20\fnil Dotum;}{\f21\fnil SimHei;}{\f22\fnil MingLiU;}{\f23\fnil MS Mincho;}{\f24\fnil Gulim;}{\f25\fnil MS Gothic;}{\f26\fnil Century;}{\f27\fnil Tahoma;}{\f28\fnil Marlett;}{\f29\fnil Humnst777 BT;}{\f30\fnil Humnst777 Cn BT;}{\f31\fnil Arial Black;}{\f32\fnil Comic Sans MS;}{\f33\fnil Impact;}{\f34\fnil Verdana;}{\f35\fnil Mistral;}{\f36\fnil Arial Narrow;}{\f37\fnil Wingdings 2;}{\f38\fnil MT Extra;}{\f39\fnil MS Reference 1;}{\f40\fnil MS Reference 2;}{\f41\fnil Times New Roman Special G1;}{\f42\fnil Times New Roman Special G2;}{\f43\fnil Arial Rounded MT Bold;}{\f44\fnil Bookman Old Style;}{\f45\fnil Century Gothic;}{\f46\fnil Haettenschweiler;}{\f47\fnil Algerian;}{\f48\fnil Braggadocio;}{\f49\fnil Britannic Bold;}{\f50\fnil Brush Script MT;}{\f51\fnil Colonna MT;}{\f52\fnil Desdemona;}{\f53\fnil Footlight MT Light;}{\f54\fnil Garamond;}{\f55\fnil Kino MT;}{\f56\fnil Wide Latin;}{\f57\fnil Matura MT Script Capitals;}{\f58\fnil Playbill;}{\f59\fnil MS LineDraw;}{\f60\fnil CRL_1;}{\f61\fnil Billboard;}{\f62\fnil Excalibur Logotype;}{\f63\fnil Excalibur Monospace;}{\f64\fnil Excalibur Script;}{\f65\fnil Kool;}{\f66\fnil Olde English;}{\f67\fnil Tapestry;}{\f68\fnil Radius;}{\f69\fnil OCR-A;}{\f70\fnil QuickType Mono;}{\f71\fnil QuickType;}{\f72\fnil QuickType Condensed;}{\f73\fnil QuickType Pi;}{\f74\fnil Mini Pics Art Jam;}{\f75\fnil Mini Pics Classic;}{\f76\fnil Mini Pics Lil Critters;}{\f77\fnil Mini Pics Lil Edibles;}{\f78\fnil Mini Pics Lil Events;}{\f79\fnil Mini Pics Lil Stuff;}{\f80\fnil Mini Pics Lil Vehicles;}{\f81\fnil Mini Pics Red Rock;}{\f82\fnil Modern;}{\f83\fnil MS Dialog;}{\f84\fnil FoxPrint;}{\f85\fnil LinePrinter;}{\f86\fnil CG Times;}{\f87\fnil Univers;}{\f88\fnil Univers Condensed;}{\f89\fnil Antique Olive;}{\f90\fnil CG Omega;}{\f91\fnil Albertus Medium;}{\f92\fnil Albertus Extra Bold;}{\f93\fnil Clarendon Condensed;}{\f94\fnil Coronet;}{\f95\fnil Letter Gothic;}{\f96\fnil Marigold;}{\f97\fnil LotusWP Int A;}{\f98\fnil LotusWP Int B;}{\f99\fnil LotusWP Box;}{\f100\fnil LotusWP Type;}{\f101\fnil LotusWP Icon;}{\f102\fnil Math A;}{\f103\fnil Math B;}{\f104\fnil Math C;}{\f105\fnil Lotus Postal Barcode;}{\f106\fnil Baskerville;}{\f107\fnil Binner Gothic;}{\f108\fnil Centaur;}{\f109\fnil Gill Sans;}{\f110\fnil Gill Sans Condensed;}{\f111\fnil Gill Sans Ultra Bold;}{\f112\fnil Monotype Sorts;}{\f113\fnil News Gothic;}{\f114\fnil Nimrod;}{\f115\fnil Onyx;}{\f116\fnil Botanical;}{\f117\fnil Rockwell;}{\f118\fnil Rockwell Condensed;}{\f119\fnil Rockwell Light;}{\f120\fnil Abadi MT Condensed;}{\f121\fnil Wingdings 3;}{\f122\fnil LotusWPSet;}{\f123\fnil LotusLineDraw;}{\f124\fnil Arial Condensed Bold;}{\f125\fnil Bodoni Black;}{\f126\fnil Bodoni Book;}{\f127\fnil New Berolina;}{\f128\fnil Old Style Bold Outline;}{\f129\fnil Palace Script;}{\f130\fnil Photina;}{\f131\fnil MS Sans Ser;}{\f132\fnil MS Sans Serif`;}{\f133\fnil Lucida Console;}{\f134\fnil Book Antiqua;}{\f135\fnil Monotype Corsiva;}{\f136\fnil MS Outlook;}{\f137\fnil Trebuchet MS;}{\f138\fnil Webdings;}{\f139\fnil Map Symbols;}{\f140\fnil News Gothic MT;}{\f141\fnil Lucida Handwriting;}{\f142\fnil Lucida Sans;}{\f143\fnil Lucida Sans Unicode;}{\f144\fnil OCR A Extended;}{\f145\fnil Calisto MT;}{\f146\fnil Abadi MT Condensed Light;}{\f147\fnil Copperplate Gothic Bold;}{\f148\fnil Copperplate Gothic Light;}{\f149\fnil Matisse ITC;}{\f150\fnil Tempus Sans ITC;}{\f151\fnil Westminster;}{\f152\fnil Tahoma (Hebrew);}{\f153\fnil Tahoma (Arabic);}{\f154\fnil Lucida Sans Unicode (Hebrew);}{\f155\fnil ms san serif;}{\f156\fnil MS Sans Seriif;}{\f157\fnil Chessmaster 5500;}{\f158\fnil Times New Roman (Hebrew);}{\f159\fnil Times New Roman (Arabic);}{\f160\fnil Arial (Hebrew);}{\f161\fnil Arial (Arabic);}{\f162\fnil Courier New (Hebrew);}{\f163\fnil Courier New (Arabic);}{\f164\fnil Vixar ASCI;}{\f165\fnil Tempo Grunge;}{\f166\fnil Almanac MT;}{\f167\fnil Baskerville Old Face;}{\f168\fnil Bauhaus 93;}{\f169\fnil Beesknees ITC;}{\f170\fnil Bell MT;}{\f171\fnil Bernard MT Condensed;}{\f172\fnil Blackadder ITC;}{\f173\fnil Bradley Hand ITC;}{\f174\fnil Broadway;}{\f175\fnil Castellar;}{\f176\fnil Century Schoolbook;}{\f177\fnil Chiller;}{\f178\fnil Cooper Black;}{\f179\fnil Curlz MT;}{\f180\fnil Edwardian Script ITC;}{\f181\fnil Engravers MT;}{\f182\fnil Eras Bold ITC;}{\f183\fnil Eras Demi ITC;}{\f184\fnil Eras Medium ITC;}{\f185\fnil Felix Titling;}{\f186\fnil Forte;}{\f187\fnil Franklin Gothic Heavy;}{\f188\fnil Franklin Gothic Medium;}{\f189\fnil Franklin Gothic Medium Cond;}{\f190\fnil French Script MT;}{\f191\fnil Georgia;}{\f192\fnil Gigi;}{\f193\fnil Gill Sans MT;}{\f194\fnil Gill Sans MT Condensed;}{\f195\fnil Gill Sans MT Ext Condensed Bold;}{\f196\fnil Gill Sans Ultra Bold Condensed;}{\f197\fnil Gloucester MT Extra Condensed;}{\f198\fnil Goudy Old Style;}{\f199\fnil Goudy Stout;}{\f200\fnil Harlow Solid Italic;}{\f201\fnil Harrington;}{\f202\fnil Holidays MT;}{\f203\fnil Imprint MT Shadow;}{\f204\fnil Informal Roman;}{\f205\fnil Jokerman;}{\f206\fnil Juice ITC;}{\f207\fnil Kristen ITC;}{\f208\fnil Kunstler Script;}{\f209\fnil Lucida Calligraphy;}{\f210\fnil Lucida Sans Typewriter;}{\f211\fnil Maiandra GD;}{\f212\fnil Modern No. 20;}{\f213\fnil Monotype Sorts 2;}{\f214\fnil Palace Script MT;}{\f215\fnil Papyrus;}{\f216\fnil Pepita MT;}{\f217\fnil Perpetua;}{\f218\fnil Perpetua Titling MT;}{\f219\fnil Pristina;}{\f220\fnil Rage Italic;}{\f221\fnil Rockwell Extra Bold;}{\f222\fnil Script MT Bold;}{\f223\fnil Snap ITC;}{\f224\fnil Stencil;}{\f225\fnil Tw Cen MT;}{\f226\fnil Tw Cen MT Condensed;}{\f227\fnil Tw Cen MT Condensed Extra Bold;}{\f228\fnil Vacation MT;}{\f229\fnil Viner Hand ITC;}{\f230\fnil Vivaldi;}{\f231\fnil Vladimir Script;}{\f232\fnil Franklin Gothic Demi;}{\f233\fnil Franklin Gothic Demi Cond;}{\f234\fnil Verdana Ref;}{\f235\fnil Georgia Ref;}{\f236\fnil RefSpecialty;}{\f237\fnil MS Reference Sans Serif;}{\f238\fnil MS Reference Serif;}{\f239\fnil MS Reference Specialty;}{\f240\fnil Arial Special G1;}{\f241\fnil Arial Special G2;}{\f242\fnil Arial Narrow Special G1;}{\f243\fnil Arial Narrow Special G2;}{\f244\fnil Franklin Gothic Medium Cond Gre;}{\f245\fnil Franklin Gothic Medium Cond Bal;}{\f246\fnil Franklin Gothic Demi Cond Balti;}{\f247\fnil Times New Roman CE;}{\f248\fnil Times New Roman Cyr;}{\f249\fnil Times New Roman Greek;}{\f250\fnil Times New Roman Tur;}{\f251\froman Times New Roman Baltic;}}
{\colortbl;\red0\green0\blue255;}
{\stylesheet{\fs20 \snext0 Normal;}
}\pard\plain
\pard\keepn\sb235\sa55 \b\fs20 Extended Foxtools Help
\par \pard \plain\uldb\fs20
\par About Extended Foxtools Help\plain\fs20 {\v B.03XH}
\par \uldb Acknowledgements\plain\fs20 {\v 1.U11UJ}\uldb
\par Alphabetical Function List\plain\fs20 {\v B.D4K5}\uldb
\par Clipboard Functions\plain\fs20 {\v 2P4NVVT}\uldb
\par Exposed FoxPro Editor API Functions\plain\fs20 {\v FTAPI}
\par \uldb Exposed FoxPro Window API Functions\plain\fs20 {\v FTWAPI}\uldb
\par File & Drive Functions\plain\fs20 {\v 9P9SDS}\uldb
\par String Functions\plain\fs20 {\v UURZGK}\uldb
\par Miscellaneous Functions\plain\fs20 {\v FTMISC}
\par \uldb Functions Added To The Languge In Version 6.0\plain\fs20 {\v BG5ZD.}
\par \uldb New Functions in Foxtools 6.0\plain\fs20 {\v .EN3EU}\uldb
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0001}
{\up $}{\footnote\pard\plain{\up $} About Extended Help}
{\up #}{\footnote\pard\plain{\up #} B.03XH}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} About}
\plain\b\fs20 About Extended Foxtools Help
\par \pard \plain\fs20
\par Information contained in this help file has been obtained from a number of sources. These include the FOXTOOLS.WRI file included in FoxPro for Windows 2.x, the Microsoft Knowledge Base, the Library Construction Kit, and the Visual FoxPro 5.0 Help File.
\par
\par Additional information, especially that connected with the FoxPro API functions exposed by FOXTOOLS, has been obtained mostly been through trial and error by the author. Naturally, no warranty is either intended or implied by the publication of this document. Indeed, since the library was first released, Microsoft\f251 \'92\f11 s stated position has been and is one of no guarantee of current or future support. However, through five versions, no functions have been removed except those incorporated into the language proper, but some have been added. This help file is complete through version 6.0.
\par \pard
\par I would appreciate any feedback regarding this work. This includes correction of any errors found, or suggestions as to providing additional examples. Feel free to email me at : [email protected]
\par
\par George Tasker
\par February 21, 1998
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0002}
{\up $}{\footnote\pard\plain{\up $} Acknowledgements}
{\up #}{\footnote\pard\plain{\up #} 1.U11UJ}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} Acknowledgements}
\b Acknowledgements
\par \pard \plain\fs20
\par I would like to acknowledge the following people:
\par
\par Rick Strahl of West Wind Technologies, for sparking my interest in the API functions.
\par
\par Steve Despres and Roxanne Seibert for their words of encouragement.
\par
\par David Frankenbach for pointing out the FoxTouch() function and a source of information about it.
\par
\par Robert Green of Microsoft, for encouraging me to expand this project
\par
\par Michel Fournier of Fournier Transformation, Inc., for providing the Universal Thread as a means of distribution.
\par \pard
\par Joshua D. Weiss of Boston Microcomputer Consulting, for providing the information regarding the functions from the library added to the language in version 6.0.
\par
\par Christof Lange, The Foxpert!, for information on a documentation source for the functions _WsockStartUp(), _WSockGetHostByAddr(), and _WSockCleanUp(). Christof also provided additional information for the last element of the array populated by _EdGetEnv(). Further, Christof\f251 \'92\f11 s feedback on one of his projects led directly to the section entitled, \'93Invalid whandles\'94 and additional information on _EdGetLNum() and _EdGetLPos(). My thanks to him for his continuing feedback and support of this project. Most recently he has provided information regarding problems with _EGetEnv(). His continued support of this project is greatly appreciated.
\par \pard
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0003}
{\up $}{\footnote\pard\plain{\up $} Alphabetical Functions}
{\up #}{\footnote\pard\plain{\up #} B.D4K5}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} Alphabetical Function List}
\b Alphabetical Function List
\par \pard \uldb \plain\uldb\fs20 AddBS\plain\fs20 {\v 14EGS1W}
\par \uldb CallFN\plain\fs20 {\v 211_Z8Q}
\par \uldb CleanPath\plain\fs20 {\v C1HUI2}
\par \uldb CloseClip\plain\fs20 {\v LI4.7L}
\par \uldb CountClipF\plain\fs20 {\v 54EH_S9}
\par \uldb DefaultExt\plain\fs20 {\v JCX88A}
\par \uldb DriveType\plain\fs20 {\v 074B7F}
\par \uldb EmptyClip\plain\fs20 {\v 11NJOWG}
\par \uldb EnumClipFm\plain\fs20 {\v 12SSV0G}
\par \uldb ForceExt\plain\fs20 {\v 36PZ07N}
\par \uldb ForcePath\plain\fs20 {\v H1ZPGF}
\par \uldb FoxToolVer\plain\fs20 {\v 31VC9DH}
\par \uldb FoxTouch\plain\fs20 {\v I_4KEX}\uldb
\par GetClipDat\plain\fs20 {\v _708YP}
\par \uldb GetClipFmt\plain\fs20 {\v 3N0K8YJ}
\par \uldb GetFileVersion\plain\fs20 {\v IP6OP8}
\par \uldb GetProStrg\plain\fs20 {\v 19B.QHP}
\par \uldb IsClipFmt\plain\fs20 {\v 1HSGYXC}
\par \uldb JustDrive\plain\fs20 {\v OPGGH3}
\par \uldb JustExt\plain\fs20 {\v 2EALD5}
\par \uldb JustFName\plain\fs20 {\v 2QC._Z8}
\par \uldb JustPath\plain\fs20 {\v CQ2YEC}
\par \uldb JustStem\plain\fs20 {\v CQ6A6H}
\par \uldb MainHwnd\plain\fs20 {\v 18_H6X8}
\par \uldb MkDir\plain\fs20 {\v BHBSLF}
\par \pard \uldb MsgBox\plain\fs20 {\v 1I9WPUK}
\par \uldb NextWord\plain\fs20 {\v _64OBQ}
\par \uldb OpenClip\plain\fs20 {\v 7XJE.L}
\par \uldb PutProStrg\plain\fs20 {\v XDITBE}
\par \uldb Reduce\plain\fs20 {\v 1MVU8I8}
\par \uldb RegClipFmt\plain\fs20 {\v 1GPWPV0}
\par \uldb RegFN\plain\fs20 {\v BM.VIB}
\par \uldb RegFN32\plain\fs20 {\v BM.VIB}
\par \uldb RGBComp\plain\fs20 {\v WX9ZQ_}
\par \uldb RmDir\plain\fs20 {\v BMDSLF}
\par \uldb SetClipDat\plain\fs20 {\v LSILHM}
\par \uldb StrFilter\plain\fs20 {\v 1E2V3OK}
\par \uldb ValidPath\plain\fs20 {\v 36PDQE}
\par \uldb WordNum\plain\fs20 {\v 4PUMZUE}
\par \uldb Words\plain\fs20 {\v BRG6GG}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0004}
{\up $}{\footnote\pard\plain{\up $} Clipboard Functions}
{\up #}{\footnote\pard\plain{\up #} 2P4NVVT}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} Clipboard Functions}
\b Clipboard Functions
\par \pard \uldb \plain\uldb\fs20 CloseClip\plain\fs20 {\v LI4.7L}
\par \uldb CountClipF\plain\fs20 {\v 54EH_S9}
\par \uldb EmptyClip\plain\fs20 {\v 11NJOWG}
\par \uldb EnumClipFm\plain\fs20 {\v 12SSV0G}
\par \uldb GetClipDat\plain\fs20 {\v _708YP}
\par \uldb GetClipFmt\plain\fs20 {\v 3N0K8YJ}
\par \uldb IsClipFmt\plain\fs20 {\v 1HSGYXC}
\par \uldb OpenClip\plain\fs20 {\v 7XJE.L}
\par \uldb RegClipFmt\plain\fs20 {\v 1GPWPV0}
\par \uldb SetClipDat\plain\fs20 {\v LSILHM}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0005}
{\up $}{\footnote\pard\plain{\up $} File and Drive Functions}
{\up #}{\footnote\pard\plain{\up #} 9P9SDS}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} Drives;File and Drive Functions;Files}
\b File and Drive Functions
\par \pard \uldb \plain\uldb\fs20 AddBS\plain\fs20 {\v 14EGS1W}
\par \uldb CleanPath\plain\fs20 {\v C1HUI2}
\par \uldb DefaultExt\plain\fs20 {\v JCX88A}
\par \uldb DriveType\plain\fs20 {\v 074B7F}
\par \uldb ForceExt\plain\fs20 {\v 36PZ07N}
\par \uldb ForcePath\plain\fs20 {\v H1ZPGF}
\par \uldb FoxTouch\plain\fs20 {\v I_4KEX}\uldb
\par JustDrive\plain\fs20 {\v OPGGH3}
\par \uldb JustExt\plain\fs20 {\v 2EALD5}
\par \uldb JustFName\plain\fs20 {\v 2QC._Z8}
\par \uldb JustPath\plain\fs20 {\v CQ2YEC}
\par \uldb JustStem\plain\fs20 {\v CQ6A6H}
\par \uldb MkDir\plain\fs20 {\v BHBSLF}
\par \uldb RmDir\plain\fs20 {\v BMDSLF}
\par \uldb ValidPath\plain\fs20 {\v 36PDQE}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0006}
{\up $}{\footnote\pard\plain{\up $} String Functions}
{\up #}{\footnote\pard\plain{\up #} UURZGK}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} Strings}
\b String Functions
\par \pard \uldb \plain\uldb\fs20 NextWord\plain\fs20 {\v _64OBQ}
\par \uldb Reduce\plain\fs20 {\v 1MVU8I8}
\par \uldb StrFilter\plain\fs20 {\v 1E2V3OK}
\par \uldb WordNum\plain\fs20 {\v 4PUMZUE}
\par \uldb Words\plain\fs20 {\v BRG6GG}
\par
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0007}
{\up $}{\footnote\pard\plain{\up $} Editor API Functions}
{\up #}{\footnote\pard\plain{\up #} FTAPI}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} Editor;VFP API}
\b Exposed FoxPro Editor API Functions
\par \pard\tx355 \uldb \plain\uldb\fs20 _EdActive\plain\fs20 {\v A7FFBK}\tab \tab \tab \uldb _EdPaste\plain\fs20 {\v 468VNP}
\par \uldb _EdCloseFi\plain\fs20 {\v 11I9_ZG}\tab \tab \tab \uldb _EdPosInvi\plain\fs20 {\v 18HMP1D}
\par \uldb _EdComment\plain\fs20 {\v 367W.RW}\tab \tab \tab \uldb _EdProcList\plain\fs20 {\v RELHQC}
\par \uldb _EdCopy\plain\fs20 {\v 1C.3RW}\tab \tab \tab \uldb _EdProperties\plain\fs20 {\v 12T4H7T}
\par \uldb _EdCut\plain\fs20 {\v 14IGRDX}\tab \tab \tab \tab \uldb _EdRedo\plain\fs20 {\v 1CJTFM}
\par \uldb _EdDelete\plain\fs20 {\v 8JRM.W4}\tab \tab \tab \uldb _EdRevert\plain\fs20 {\v 26L5ABO}
\par \uldb _EdGetChar\plain\fs20 {\v 57VD36}\tab \tab \tab \uldb _EdSelect\plain\fs20 {\v 27KVA3O}
\par \uldb _EdGetEnv\plain\fs20 {\v 19BRARA}\tab \tab \tab \uldb _EdSendKey\plain\fs20 {\v 3.0.M4D}
\par \uldb _EdGetLNum\plain\fs20 {\v 584JG1}\tab \tab \tab \uldb _EdSetEnv\plain\fs20 {\v 1EBRARA}
\par \uldb _EdGetLPos\plain\fs20 {\v 584LA7}\tab \tab \tab \uldb _EdSetPos\plain\fs20 {\v 3G3KKCC}
\par \uldb _EdGetPos\plain\fs20 {\v 3X.WJZS}\tab \tab \tab \uldb _EdSkipLin\plain\fs20 {\v 2OW.NKT}
\par \uldb _EdGetStr\plain\fs20 {\v 19BROX_}\tab \tab \tab \uldb _EdStoPos\plain\fs20 {\v 2U90KW3}
\par \pard\tx355 \uldb _EdIndent\plain\fs20 {\v IB6B0Z}\tab \tab \tab \uldb _EdStoSel\plain\fs20 {\v SHAP1R}
\par \uldb _EdInsert\plain\fs20 {\v 1XU2ABO}\tab \tab \tab \uldb _EdUndo\plain\fs20 {\v 1CN2FM}
\par \uldb _EdLastErr\plain\fs20 {\v XUJD8W}\tab \tab \tab \uldb _EdUndoOn\plain\fs20 {\v 88ULOD}
\par \uldb _EdOpenFil\plain\fs20 {\v 90RGOG}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0008}
{\up $}{\footnote\pard\plain{\up $} Window API Functions}
{\up #}{\footnote\pard\plain{\up #} FTWAPI}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} VFP API;Windows}
\b Exposed FoxPro Window API Functions
\par \pard\tx355 \uldb \plain\uldb\fs20 _FindWindo\plain\fs20 {\v 7G7YBX}\tab \tab \tab \uldb _WOpen\plain\fs20 {\v BRG4HB}
\par \uldb _FindWindp\plain\fs20 {\v 7G7YBY}\tab \tab \tab \uldb _WOpenP\plain\fs20 {\v CNHTPN}\uldb
\par _GetWRect\plain\fs20 {\v 8REQUZ}\tab \tab \tab \uldb _WPutChr\plain\fs20 {\v 233XQA5}
\par \uldb _WAttr\plain\fs20 {\v BR98WF}\tab \tab \tab \tab \uldb _WPutStr\plain\fs20 {\v 233Y6M5}
\par \uldb _WBottom\plain\fs20 {\v 3QIR685}\tab \tab \tab \uldb _WPosCurso\plain\fs20 {\v 33Z_TBN}
\par \uldb _WBottomP\plain\fs20 {\v 99EO9S}\tab \tab \tab \uldb _WPosCurP\plain\fs20 {\v 1Z_42H5}
\par \uldb _WClear\plain\fs20 {\v CBDTCP}\tab \tab \tab \uldb _WRight\plain\fs20 {\v CQAVJR}
\par \uldb _WClearRec\plain\fs20 {\v 1.Y.3FA}\tab \tab \tab \uldb _WRightP\plain\fs20 {\v 36RX1Y}
\par \uldb _WClearRep\plain\fs20 {\v 1.Y.3FN}\tab \tab \tab \uldb _WScroll\plain\fs20 {\v 4133TU}
\par \uldb _WClose\plain\fs20 {\v CBE3UC}\tab \tab \tab \uldb _WScrollP\plain\fs20 {\v JZMW6V}
\par \uldb _WFindTitl\plain\fs20 {\v CM7U01}\tab \tab \tab \uldb _WSelect\plain\fs20 {\v 42WTL2}
\par \uldb _WFooter\plain\fs20 {\v 16OH7QP}\tab \tab \tab \uldb _WSendBehi\plain\fs20 {\v 1NRFAYN}
\par \pard\tx355 \uldb _WGetCurP\plain\fs20 {\v 9N6XG9}\tab \tab \tab \uldb _WSetAttr\plain\fs20 {\v 21CX3BM}
\par \uldb _WGetCurso\plain\fs20 {\v 861MMF}\tab \tab \tab \uldb _WSetPort\plain\fs20 {\v M1NZ.Z}
\par \uldb _WGetPort\plain\fs20 {\v 9NCRG_}\tab \tab \tab \uldb _WSetTitle\plain\fs20 {\v EP5QYU}
\par \uldb _WHeight\plain\fs20 {\v F.5V_B}\tab \tab \tab \uldb _WShow\plain\fs20 {\v BRJWRK}
\par \uldb _WHeightP\plain\fs20 {\v G9YL1T}\tab \tab \tab \uldb _WSize\plain\fs20 {\v BRJY29}
\par \uldb _WHide\plain\fs20 {\v 1R9WWJY}\tab \tab \tab \uldb _WSizeP\plain\fs20 {\v 1S9Z_KC}
\par \uldb _WHToHWnd\plain\fs20 {\v 20RGYZ_}\tab \tab \tab \uldb _WTitle\plain\fs20 {\v CSB8NC}
\par \uldb _WLeft\plain\fs20 {\v BRCTIH}\tab \tab \tab \tab \uldb _WTop\plain\fs20 {\v FTWTOP}
\par \uldb _WLeftP\plain\fs20 {\v CK_UVN}\tab \tab \tab \uldb _WTopP\plain\fs20 {\v BRL3SD}
\par \uldb _WMainWind\plain\fs20 {\v EW3BSD}\tab \tab \tab \uldb _WWidth\plain\fs20 {\v CVASVF}
\par \uldb _WMove\plain\fs20 {\v BRE3Y9}\tab \tab \tab \uldb _WWidthP\plain\fs20 {\v 86P8PY}
\par \uldb _WMoveP\plain\fs20 {\v CLH0GN}\tab \tab \tab \uldb _WZoom\plain\fs20 {\v BRR3RA}
\par \uldb _WOnTop\plain\fs20 {\v CNG8QN}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0009}
{\up $}{\footnote\pard\plain{\up $} Misc Functions}
{\up #}{\footnote\pard\plain{\up #} FTMISC}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} Miscellaneous Functions}
\b Miscellaneous Functions
\par \pard \uldb \plain\uldb\fs20 CallFN\plain\fs20 {\v 211_Z8Q}
\par \uldb FoxToolVer\plain\fs20 {\v 31VC9DH}
\par \uldb GetFileVersion\plain\fs20 {\v IP6OP8}
\par \uldb GetProStrg\plain\fs20 {\v 19B.QHP}
\par \uldb MainHwnd\plain\fs20 {\v 18_H6X8}
\par \uldb MsgBox\plain\fs20 {\v 1I9WPUK}
\par \uldb RegFN\plain\fs20 {\v BM.VIB}
\par \uldb RegFN32\plain\fs20 {\v BM.VIB}
\par \uldb PutProStrg\plain\fs20 {\v XDITBE}
\par \uldb RGBComp\plain\fs20 {\v WX9ZQ_}
\par
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:000a}
{\up $}{\footnote\pard\plain{\up $} _EdActive}
{\up #}{\footnote\pard\plain{\up #} A7FFBK}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdActive;insertion point;range}
\b _EdActive( )
\par \pard \plain\fs20
\par Hides or displays the insertion point or selected range in a file.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdActive(nWhandle, lShow)
\par \plain\fs20
\par \f2\b nWhandle\plain\i\fs20
\par
\par \plain\fs20 The whandle of the window containing the highlighted text.
\par
\par \f2\b lShow\plain\i\fs20
\par
\par \plain\fs20 The show state. .F. hides, .T. displays.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b Remarks\plain\fs20
\par
\par Tests with an open text file produced no changes in the display.
\par
\par \b See Also\plain\fs20 \f251 \'96\f11 \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:000b}
{\up $}{\footnote\pard\plain{\up $} _EdCloseFi}
{\up #}{\footnote\pard\plain{\up #} 11I9_ZG}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdCloseFi;Close File}
\b _EdCloseFi( )
\par \pard\tx355 \plain\fs20
\par Closes the specified edited file and the window displaying it.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b lnresult = _EdCloseFi(nWhandle, nCloseCmnd)
\par \plain\fs20
\par \f2\b nWhandle\plain\i\fs20
\par
\par \plain\fs20 The whandle of the window containing the text.
\par
\par \f2\b nCloseCmnd\plain\i\fs20
\par
\par \plain\fs20 One of three possible values, as shown in the table below.
\par
\par \b nCloseCmnd\tab \tab Result
\par \plain\fs20 0\tab \tab \tab \tab Immediately save the file and close.
\par 1\tab \tab \tab \tab Save and close after confirmation.
\par 2\tab \tab \tab \tab Open Save As dialog.
\par
\par \b Returns\plain\fs20
\par
\par \pard\tx355 Numeric
\par \pard\tx355
\par \pard\tx355 \b Remarks\plain\fs20
\par \pard\tx355
\par \pard\tx355 0 is returned if the file is successfully saved. -1 is returned if the file is not saved. 1 is returned if the operation is canceled.
\par \pard\tx355
\par \pard\tx355 \b See Also\plain\fs20 - \uldb _EdOpenFil\plain\fs20 {\v 90RGOG}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:000c}
{\up $}{\footnote\pard\plain{\up $} _EdComment}
{\up #}{\footnote\pard\plain{\up #} 367W.RW}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdComment;comment}
\b _EdComment( )
\par \pard \plain\fs20
\par Inserts comment marks in highlighted text area.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdComment(nWhandle, nNumberMarks)\plain\i\fs20
\par \plain\fs20
\par \f2\b nWhandle\plain\i\fs20
\par
\par \plain\fs20 The whandle of the window containing the highlighted text.
\par
\par \f2\b nNumberMarks\plain\fs20
\par
\par The number of comment marks to insert per line. Format of comments marks can be made by entering or editing a value for the following key:
\par
\par HKEY_CURRENT_USER\'5cSoftware\'5cMicrosoft\'5cVisualFoxPro\'5c6.0\'5cOptions\'5cEditorCommentString
\par
\par \b Returns\plain\fs20
\par \pard
\par Logical
\par
\par \b See Also\plain\fs20 - \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:000d}
{\up $}{\footnote\pard\plain{\up $} _EdCopy}
{\up #}{\footnote\pard\plain{\up #} 1C.3RW}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdCopy;Copy}
\b _EdCopy( )
\par \pard \plain\fs20
\par Copies the selected text into the clipboard.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdCopy(nWhandle)
\par \plain\fs20
\par \f2\b nWhandle\plain\i\fs20
\par
\par \plain\fs20 The whandle of the window containing the highlighted text.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b Remarks\plain\fs20
\par
\par Normally actions associated with the clipboard require that a series of functions be called. \b EdCopy()\plain\fs20 , however, does not require this.
\par
\par \b See Also\plain\fs20 - \uldb _EdCut\plain\fs20 {\v 14IGRDX}, \uldb _EdDelete\plain\fs20 {\v 8JRM.W4}, \uldb _EdPaste\plain\fs20 {\v 468VNP}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \pard
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:000e}
{\up $}{\footnote\pard\plain{\up $} _EdCut}
{\up #}{\footnote\pard\plain{\up #} 14IGRDX}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdCut;Cut}
\b _EdCut( )
\par \pard \plain\fs20
\par Cuts the highlighted text and places it in the clipboard. It is then removed from the editing window.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdCut(nWhandle)
\par \plain\i\fs20
\par \plain\f2\b\fs20 nWhandle\plain\i\fs20
\par
\par \plain\fs20 The whandle of the window containing the highlighted text.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b See Also\plain\fs20 - \uldb _EdCopy\plain\fs20 {\v 1C.3RW}, \uldb _EdDelete\plain\fs20 {\v 8JRM.W4}, \uldb _EdPaste\plain\fs20 {\v 468VNP}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:000f}
{\up $}{\footnote\pard\plain{\up $} _EdDelete}
{\up #}{\footnote\pard\plain{\up #} 8JRM.W4}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdDelete;Delete}
\b _EdDelete( )
\par \pard \plain\fs20
\par Deletes the highlighted text from the file. While the API documentation states that if no text is selected, the character to the right of the current cursor position is deleted, the FOXTOOLS version does not do this.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdDelete(nWhandle)
\par
\par nWhandle
\par \plain\i\fs20
\par \plain\fs20 The whandle of the window containing the highlighted text.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b See Also\plain\fs20 - \uldb _EdCopy\plain\fs20 {\v 1C.3RW}, \uldb _EdCut\plain\fs20 {\v 14IGRDX}, \uldb _EdPaste\plain\fs20 {\v 468VNP}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0010}
{\up $}{\footnote\pard\plain{\up $} _EdGetChar}
\pard\keepn\sb235\sa55 {\up #}{\footnote\pard\plain{\up #} 57VD36}
{\up K}{\footnote\pard\plain{\up K} _EdGetChar;character}
\b _EdGetChar( )
\par \pard \plain\fs20
\par Returns the character at a position within the file.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b lcresult = _EdGetChar(nWhandle, nPosition)
\par
\par nWhandle
\par \plain\fs20
\par The whandle of the file containing the text
\par
\par \f2\b nPosition\plain\fs20
\par
\par The position in bytes from the beginning of the file. To retrieve the current cursor position use \uldb \b _EdGetPos\plain\b\fs20 {\v 3X.WJZS}\plain\fs20 .
\par
\par \b Returns\plain\fs20
\par
\par Character
\par
\par \b Example\plain\fs20
\par
\par The following uses \b _EdGetChar()\plain\fs20 to retrieve the character at the current cursor position. This value is retrieved using the \uldb \b _EdGetPos\plain\b\fs20 {\v 3X.WJZS}\plain\fs20 function.
\par \pard
\par \f2\b * lctitle is the title text of the window
\par * containing the file being edited.
\par lnwhandle = _WFindTitl(lctitle)
\par IF lnwhandle > 0
\par lnindex = _EdGetPos(lnwhandle)
\par lcresult = _EdGetChar(lnwhandle, lnindex)
\par ENDIF
\par \plain\fs20
\par \b See Also\plain\fs20 -\uldb _EdGetPos\plain\fs20 {\v 3X.WJZS}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0011}
{\up $}{\footnote\pard\plain{\up $} _EdGetEnv}
{\up #}{\footnote\pard\plain{\up #} 19BRARA}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdGetEnv;environment}
\b _EdGetEnv( )
\par \pard \plain\fs20
\par Returns the environment settings for a text or program file opened for editing.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b lnresult = _EdGetEnv(nWhandle, @aEnvironment)
\par \plain\fs20
\par \f2\b nWhandle\plain\fs20
\par
\par The whandle of the file containing the text
\par
\par \f2\b aEnvironment\plain\fs20
\par
\par An array to hold the environment settings. This array should first be dimensioned to at least 25 rows and must be passed by reference.
\par
\par \b Returns\plain\fs20
\par
\par Numeric
\par
\par \b Remarks\plain\fs20
\par
\par The function will return 1 if it succeeds in loading the array, 0 if it does not. The return values for the array rows are listed in the following table. Those elements whose description are followed by an asterisk may be modified and changed by using \uldb \b _EdSetEnv\plain\b\fs20 {\v 1EBRARA}\plain\fs20 .
\par \pard\tx355
\par \b Array Subscript\tab Return Value\plain\fs20
\par 1\tab \tab \tab \tab File name
\par 2\tab \tab \tab \tab File size
\par 3\tab \tab \tab \tab Maximum file size (0 = infinite)*
\par 4\tab \tab \tab \tab Changed state (0 = No, 1 = Yes)
\par 5\tab \tab \tab \tab Auto Indent? (0 = No, 1 = Yes)*
\par 6\tab \tab \tab \tab Make backup? (0 = No, 1 = Yes)*
\par 7\tab \tab \tab \tab Add Linefeeds when saved (0 = No, 1 = Yes)*
\par 8\tab \tab \tab \tab Auto-compile? (0 = No, 1 = Yes)*
\par 9\tab \tab \tab \tab Add Cntrl+Z at end of file? (0 = No, 1 = Yes)*
\par 10\tab \tab \tab \tab Save preferences? (0 = No, 1 = Yes)*
\par 11\tab \tab \tab \tab Allow Drag/Drop? (0 = No, 1 = Yes)*
\par \pard\tx355 12\tab \tab \tab \tab Read-Only?
\par \pard\li2155\tx355 (0 = No, 1 = Yes, 2 = Read/Write opened as read-only, 3 = Read-Only opened as read-only)
\par \pard\tx355 13\tab \tab \tab \tab Display Status Bar? (0 = No, 1 = Yes)*
\par 14\tab \tab \tab \tab Update preferences? (0 = No, 1 = Yes)*
\par 15\tab \tab \tab \tab Insert Mode? (0 = No, 1 = Yes)*
\par 16\tab \tab \tab \tab Wrap Words? If less than 0, new line at return only.*
\par 17\tab \tab \tab \tab Selection Start
\par 18\tab \tab \tab \tab Selection End
\par 19\tab \tab \tab \tab Selection Anchor point
\par 20\tab \tab \tab \tab Justification (0 = Left, 1 = Right, 2 = Center)*
\par 21\tab \tab \tab \tab Tab size in spaces*
\par 22\tab \tab \tab \tab Font name*
\par 23\tab \tab \tab \tab Font size*
\par 24\tab \tab \tab \tab Font style (0 = plain, 1 = bold, 2 = italic, 3 = bold italic)*
\par \pard\tx355 25\tab \tab \tab \tab Editor Session \f251 \'96\f11 The editor session is as follows:
\par \tab \tab \tab \tab 0 \f251 \'96\f11 Command Window
\par \pard\li1435\fi715\tx355 1 \f251 \'96\f11 Program file (MODIFY COMMAND)
\par \pard\li1435\fi715\tx355 2 \f251 \'96\f11 Text Editor (MODIFY FILE)
\par \pard\li1435\fi715\tx355 8 \f251 \'96\f11 Menu code edit window
\par \pard\li1435\fi715\tx355 10 \f251 \'96\f11 Method code edit window of the Class or Form Designer
\par \pard\li1435\fi715\tx355 12 \f251 \'96\f11 Stored procedure in a DBC (MODIFY PROCEDURE)
\par \pard\tx355
\par \pard\tx355 The values for the last element of the array are correct for versions 5.0 and 6.0. Prior versions have not, as yet, been tested.
\par \pard\tx355
\par \pard\tx355 Unfortunately, in version 6.0, the function does not return the correct information regarding the font name, its size or style. In order to do so, the following code, based on the work of Christof Lange, will accomplish this and return the values listed above. In FPW 2.6, the information returned from the function is correct.
\par \pard\tx355
\par \pard\tx355 \f2\b * Sample Call
\par \pard\tx355 lnwhandle = _WFindTitl(\f251 \'91\f2 program1.pgr\f251 \'92\f2 )
\par \pard\tx355 lcname = \'93\'94
\par \pard\tx355 STORE 0 TO lnsize, lnstyle
\par \pard\tx355 IF GetFontInfo(lnwhandle, @lcname, @lnsize, @lnstyle)
\par \pard\tx355 ? lcname
\par \pard\tx355 ? lnsize
\par \pard\tx355 ? lnstyle
\par \pard\tx355 ENDIF
\par \pard\tx355
\par \pard\tx355 FUNCTION GetFontInfo
\par \pard\tx355 * Author: George Tasker
\par \pard\tx355 * Date: June 11, 2000 - 6:46 PM
\par \pard\tx355 * Purpose: Returns font information
\par \pard\tx355 * from the editor window
\par \pard\tx355 * The comments below are from Christof
\par \pard\tx355 * Lange (with those from me indicated),
\par \pard\tx355 * whose original code is the source
\par \pard\tx355 * of this function
\par \pard\tx355
\par \pard\tx355 LPARAMETERS twHandle, tcFontName, tnFontSize, tnFontStyle
\par \pard\tx355
\par \pard\tx355 LOCAL lresult, lnhWnd, lnHDC, lnHFont,;
\par \pard\tx355 lnsize, lcbuffer
\par \pard\tx355 #DEFINE OBJ_FONT 6
\par \pard\tx355 llresult = .F.
\par \pard\tx355 *-----------------------------------------------------------------
\par \pard\tx355 * We don't need the window handle of this window, but we need
\par \pard\tx355 * the HWND of the child window that contains the actual editor.
\par \pard\tx355 * The GetClientWindow() function retrieves this window handle.
\par \pard\tx355 *-----------------------------------------------------------------
\par \pard\tx355 lnhWnd = GetClientWindow(twHandle)
\par \pard\tx355 IF lnhWnd > 0
\par \pard\tx355 *--------------------------------------------------
\par \pard\tx355 * Using this HWND we can then get a Device Context.
\par \pard\tx355 *--------------------------------------------------
\par \pard\tx355 DECLARE INTEGER GetDC IN Win32API;
\par \pard\tx355 INTEGER hwnd
\par \pard\tx355 lnHDC = GetDC(lnhWnd)
\par \pard\tx355 IF lnHDC > 0
\par \pard\tx355 *-------------------------------------------------
\par \pard\tx355 * With this device context we can now get
\par \pard\tx355 * an object handle to the currently selected font.
\par \pard\tx355 *-------------------------------------------------
\par \pard\tx355 DECLARE INTEGER GetCurrentObject IN Win32API;
\par \pard\tx355 INTEGER hdc, INTEGER uObjectType
\par \pard\tx355 lnHFont = GetCurrentObject(lnHDC, OBJ_FONT)
\par \pard\tx355 IF lnHFont > 0
\par \pard\tx355 *-----------------------------------------------------
\par \pard\tx355 * The HFONT handle to the current font can be
\par \pard\tx355 * used to obtain more detailed information about the
\par \pard\tx355 * selected font.
\par \pard\tx355 * We need to rename the API function GetObject(),
\par \pard\tx355 * because it's the same as VFP's GETOBJECT() function
\par \pard\tx355 *-----------------------------------------------------
\par \pard\tx355 DECLARE INTEGER GetObject IN Win32API AS GDIGetObject;
\par \pard\tx355 INTEGER hgdiobj, INTEGER cbbuffer, STRING @lpvObject
\par \pard\tx355 lnsize = GDIGetObject(lnHFont, 0, 0)
\par \pard\tx355 lcbuffer = REPLICATE(CHR(0), lnsize)
\par \pard\tx355 IF GDIGetObject(lnHFont, lnsize, @lcbuffer) > 0
\par \pard\tx355 *----------------------------------------------------
\par \pard\tx355 * Now we can extract the font information from the
\par \pard\tx355 * LOGFONT structure.
\par \pard\tx355 *----------------------------------------------------
\par \pard\tx355 llresult = .T.
\par \pard\tx355 tcFontName = SUBSTR(lcbuffer, 29)
\par \pard\tx355 tcFontName = LEFT(tcFontName, AT(CHR(0), tcFontName) - 1)
\par \pard\tx355 tnFontSize = ABS(StringToInteger(LEFT(lcbuffer, 4), .T.))
\par \pard\tx355 * Convert the pixels to points - gt
\par \pard\tx355 tnFontSize = Pix2Points(lnHDC, tnFontSize)
\par \pard\tx355 tnFontStyle = 0
\par \pard\tx355 IF StringToInteger(SUBSTR(lcbuffer, 17, 4)) >= 700
\par \pard\tx355 tnFontStyle = tnFontStyle + 1
\par \pard\tx355 ENDIF
\par \pard\tx355 IF ASC(SUBSTR(lcbuffer, 21, 1)) # 0
\par \pard\tx355 tnFontStyle = tnFontStyle + 2
\par \pard\tx355 ENDIF
\par \pard\tx355 ENDIF
\par \pard\tx355 ENDIF
\par \pard\tx355 DECLARE INTEGER ReleaseDC IN Win32API;
\par \pard\tx355 INTEGER hwnd, INTEGER hdc
\par \pard\tx355 * Release the Device Context - gt
\par \pard\tx355 = ReleaseDC(lnhWnd, lnHDC)
\par \pard\tx355 ENDIF
\par \pard\tx355 ENDIF
\par \pard\tx355 RETURN llresult
\par \pard\tx355 ENDFUNC
\par \pard\tx355
\par \pard\tx355 FUNCTION GetClientWindow
\par \pard\tx355
\par \pard\tx355 LPARAMETER tnwHandle
\par \pard\tx355
\par \pard\tx355 LOCAL lnresult, lnhwnd, lnchild
\par \pard\tx355 DECLARE INTEGER GetWindow IN Win32API;
\par \pard\tx355 INTEGER hwnd, INTEGER uCmd
\par \pard\tx355 #DEFINE GW_HWNDNEXT 2
\par \pard\tx355 #DEFINE GW_CHILD 5
\par \pard\tx355 lnresult = 0
\par \pard\tx355 lnhwnd = _WhTohWnd(tnwHandle)
\par \pard\tx355 IF lnhwnd > 0
\par \pard\tx355 lnhwnd = GetWindow(lnhwnd, GW_CHILD)
\par \pard\tx355 DO WHILE lnhwnd > 0
\par \pard\tx355 lnresult = lnhwnd
\par \pard\tx355 lnhwnd = GetWindow(lnhwnd, GW_HWNDNEXT)
\par \pard\tx355 ENDDO
\par \pard\tx355 ENDIF
\par \pard\tx355 RETURN lnresult
\par \pard\tx355 ENDFUNC
\par \pard\tx355
\par \pard\tx355 FUNCTION Pix2Points
\par \pard\tx355
\par \pard\tx355 LPARAMETERS tnHDC, tnPixels
\par \pard\tx355
\par \pard\tx355 LOCAL lnresult, lnresolution
\par \pard\tx355 DECLARE INTEGER GetDeviceCaps IN Win32API;
\par \pard\tx355 INTEGER hdc, INTEGER nIndex
\par \pard\tx355 lnresolution = GetDeviceCaps(tnHDC, 90)
\par \pard\tx355 lnresult = tnPixels / lnresolution * 72
\par \pard\tx355 lnresult = ROUND(lnresult, 0)
\par \pard\tx355 RETURN lnresult
\par \pard\tx355 ENDFUNC
\par \pard\tx355
\par \pard\tx355 FUNCTION StringToInteger
\par \pard\tx355
\par \pard\tx355 LPARAMETER pcstring, plsigned
\par \pard\tx355
\par \pard\tx355 LOCAL lnresult, lnlast, lni, llsigned,;
\par \pard\tx355 lnmsb, lnmax
\par \pard\tx355 lnresult = 0
\par \pard\tx355 lnlast = LEN(pcstring)
\par \pard\tx355 * Return Signed Integer?
\par \pard\tx355 IF PCOUNT() = 2
\par \pard\tx355 llsigned = plsigned
\par \pard\tx355 ELSE
\par \pard\tx355 llsigned = .F.
\par \pard\tx355 ENDIF
\par \pard\tx355 FOR lni = 1 TO lnlast
\par \pard\tx355 lnresult = lnresult + ASC(SUBSTR(pcstring, lni, 1)) * (256 ^ (lni - 1))
\par \pard\tx355 NEXT
\par \pard\tx355 IF llsigned
\par \pard\tx355 lnmsb = (lnlast * 8) - 1
\par \pard\tx355 IF BITTEST(lnresult, lnmsb)
\par \pard\tx355 lnmax = (2 ^ (lnmsb + 1))
\par \pard\tx355 lnresult = lnresult - lnmax
\par \pard\tx355 ENDIF
\par \pard\tx355 ENDIF
\par \pard\tx355 RETURN lnresult
\par \pard\tx355 ENDFUNC
\par \pard\tx355
\par \pard\tx355 \f11 See Also\plain\fs20 \uldb _EdSetEnv\plain\fs20 {\v 1EBRARA}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0012}
{\up $}{\footnote\pard\plain{\up $} _EdGetLNum}
{\up #}{\footnote\pard\plain{\up #} 584JG1}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdGetLNum;Line Number}
\b _EdGetLNum( )
\par \pard \plain\fs20
\par Returns the line number the cursor is currently positioned at.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b lnlinenum = _EdGetLNum(nWhandle, nPosition)
\par \plain\fs20
\par \f2\b nWhandle\plain\fs20
\par
\par The whandle of the window containing the text
\par
\par \f2\b nPosition\plain\fs20
\par
\par The position in bytes from the beginning of the file.
\par
\par \b Returns\plain\fs20
\par
\par Numeric
\par
\par \b Remarks\plain\fs20
\par
\par The value returned is zero based. Add 1 to this value for the current line number. If the text is highlighted and the carriage return is included in the highlight, the value is one greater than the actual line number.
\par \pard
\par Both this function and \uldb _EdGetLPos\plain\fs20 {\v 584LA7} scans text from the beginning of the text in the specified window.
\par
\par \b See Also\plain\fs20 - \uldb _EdGetPos\plain\fs20 {\v 3X.WJZS}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0013}
{\up $}{\footnote\pard\plain{\up $} _EdGetLPos}
{\up #}{\footnote\pard\plain{\up #} 584LA7}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdGetLPos;Line Number}
\b _EdGetLPos( )
\par \pard \plain\fs20
\par Returns the offset (in bytes) of the beginning of a specified line from the start of the file.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b lnbytes = _EdGetLPos(nWhandle, nLineNo)
\par \plain\fs20
\par \f2\b nWhandle\plain\fs20
\par
\par The whandle of the program or editing window containing the text.
\par
\par \f2\b nLineNo\plain\fs20
\par
\par The line number (0 based).
\par
\par \b Returns\plain\fs20
\par
\par Numeric
\par
\par \b See Also\plain\fs20 - \uldb _EdGetLNum\plain\fs20 {\v 584JG1}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0014}
{\up $}{\footnote\pard\plain{\up $} _EdGetPos}
{\up #}{\footnote\pard\plain{\up #} 3X.WJZS}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdGetPos;Starting Position}
\b _EdGetPos( )
\par \pard \plain\fs20
\par Returns the starting position of either the selected text or insertion position in bytes from the beginning of the file.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b lnposition = _EdGetPos(nwhandle)
\par
\par nWhandle
\par \plain\i\fs20
\par \plain\fs20 The whandle of the window containing the highlighted text.
\par \i
\par \plain\b\fs20 Returns\plain\fs20
\par
\par Numeric
\par
\par \b Remarks\plain\fs20
\par
\par The starting position is the point from which the highlight began (the anchor position) and may or may not be the earliest highlighted position. Clicking and dragging to the left, for example, will cause the anchor to be set at the end point of the highlight, and will be the value returned.
\par \pard
\par \b See Also\plain\fs20 - \uldb _EdGetLNum\plain\fs20 {\v 584JG1}, \uldb _EdGetChar\plain\fs20 {\v 57VD36}, \uldb _EdSetPos\plain\fs20 {\v 3G3KKCC}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}\i
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0015}
{\up $}{\footnote\pard\plain{\up $} _EdGetStr}
{\up #}{\footnote\pard\plain{\up #} 19BROX_}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdGetStr;String}
\plain\b\fs20 _EdGetStr( )
\par \pard \plain\fs20
\par Returns a specified number of characters beginning at a specified position within the file.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b lcresult = _EdGetStr(nWhandle, nStart, nFinish)
\par
\par nWhandle
\par \plain\fs20
\par The whandle of the window containing the text.
\par
\par \f2\b nStart\plain\fs20
\par
\par The starting position within the file to begin the retrieve. The character at this position is the first retrieved.
\par
\par \f2\b nFinish\plain\fs20
\par
\par The position to stop retrieving characters.
\par
\par \b Returns\plain\fs20
\par
\par Character
\par
\par \b See Also\plain\fs20 - \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0016}
{\up $}{\footnote\pard\plain{\up $} _EdIndent}
{\up #}{\footnote\pard\plain{\up #} IB6B0Z}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdIndent;Indent}
\b _EdIndent( )
\par \pard \plain\fs20
\par Indents text one or more tab stops, beginning at the current insertion point.
\par
\par \b Syntax
\par
\par \f2 llresult = _EdIndent(nWhandle, nTabStops)
\par
\par nWhandle
\par \plain\i\fs20
\par \plain\fs20 The whandle of the window containing the text to indent.
\par
\par \f2\b nTabStops\plain\i\fs20
\par
\par \plain\fs20 The number of tab stops to indent the text. Passing a negative number un-indents the text the number of tab stops specified.
\par
\par \b Return Type
\par
\par \plain\fs20 Logical
\par
\par \b See Also\plain\fs20 - \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}\b
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0017}
{\up $}{\footnote\pard\plain{\up $} _EdInsert}
{\up #}{\footnote\pard\plain{\up #} 1XU2ABO}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdInsert;Insert}
_EdInsert( )
\par \pard \plain\fs20
\par Inserts text at the current position within a text or program file opened for editing.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdInsert(nWhandle, cInserttext, nNumberChars)
\par \plain\fs20
\par \f2\b nWhandle\plain\i\fs20
\par
\par \plain\fs20 The whandle of the window.
\par
\par \f2\b cInserttext\plain\i\fs20
\par \plain\fs20
\par The text to insert.
\par
\par \f2\b nNumberChars\plain\fs20
\par
\par The length of the text to be inserted.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b See Also\plain\fs20 - \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0018}
{\up $}{\footnote\pard\plain{\up $} _EdLastErr}
{\up #}{\footnote\pard\plain{\up #} XUJD8W}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdLastErr;Edit Errors}
\b _EdLastErr( )
\par \pard \plain\fs20
\par Returns the error number when an error occurs.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b lnerr = _EdLastErr(nWhandle)
\par \plain\i\fs20
\par \plain\f2\b\fs20 nWhandle\plain\i\fs20
\par
\par \plain\fs20 The whandle of the text/program edit window.
\par
\par \b Returns\plain\fs20
\par
\par Numeric
\par
\par \b Remarks\plain\fs20
\par
\par Unfortunately, the return values are unknown at this time.
\par
\par \b See Also\plain\fs20 - \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:0019}
{\up $}{\footnote\pard\plain{\up $} _EdOpenFil}
{\up #}{\footnote\pard\plain{\up #} 90RGOG}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdOpenFil;Open;Open File}
\b _EdOpenFil( )
\par \pard\tx355 \plain\fs20
\par Opens a file for reading or editing.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b lnwhandle = _EdOpenFil(cFilename, nMode)
\par \plain\i\fs20
\par \plain\f2\b\fs20 cFilename\plain\i\fs20
\par
\par \plain\fs20 The fully qualified file name to open.
\par \i
\par \plain\f2\b\fs20 nMode\plain\i\fs20
\par
\par \plain\fs20 The mode the file is opened in. This can be one of the following values:
\par
\par #DEFINE FO_READONLY\tab 0
\par #DEFINE FO_WRITEONLY\tab 1
\par #DEFINE FO_READWRITE\tab 2
\par
\par \b Returns\plain\fs20
\par
\par Numeric
\par
\par \b Remarks\plain\fs20
\par
\par The value returned is the whandle of the opened window. If the file does not exist the window will be created with the file name as the title.
\par \pard\tx355
\par \b See Also\plain\fs20 - \uldb _EdCloseFi\plain\fs20 {\v 11I9_ZG}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:001a}
{\up $}{\footnote\pard\plain{\up $} _EdPaste}
{\up #}{\footnote\pard\plain{\up #} 468VNP}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdPaste;Paste}
\b _EdPaste( )
\par \pard \plain\fs20
\par Pastes the contents of the clipboard into the window at the current insertion point.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdPaste(nWhandle)
\par
\par nWhandle
\par \plain\fs20
\par The whandle of the window opened for editing.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b See Also\plain\fs20 - \uldb _EdCopy\plain\fs20 {\v 1C.3RW}, \uldb _EdCut\plain\fs20 {\v 14IGRDX}, \uldb _EdDelete\plain\fs20 {\v 8JRM.W4}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:001b}
{\up $}{\footnote\pard\plain{\up $} _EdPosInvi}
{\up #}{\footnote\pard\plain{\up #} 18HMP1D}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdPosInvi}
\b _EdPosInvi( )
\par \pard \plain\fs20
\par Tells whether or not the insertion position within the file is currently displayed.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdPosInvi(nWhandle, nPosition)
\par
\par nWhandle
\par \plain\fs20
\par The whandle of the open editing window.
\par
\par \f2\b nPosition\plain\fs20
\par
\par The position in the file in bytes.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b See Also\plain\fs20 - \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:001c}
{\up $}{\footnote\pard\plain{\up $} _EdProperties}
{\up #}{\footnote\pard\plain{\up #} 12T4H7T}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdProperties;Properties Dialog}
\b _EdProperties( )
\par \pard \plain\fs20
\par Displays an Edit Properties dialog formatted for the particular editing window.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdProperties(nWhandle)
\par
\par nWhandle
\par \plain\fs20
\par The whandle of the editing window.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b Remarks\plain\fs20
\par
\par Regardless of the action taken, this function always returns .T.
\par
\par \b See Also\plain\fs20 - \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:001d}
{\up $}{\footnote\pard\plain{\up $} _EdProcList}
{\up #}{\footnote\pard\plain{\up #} RELHQC}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdProcList;Procedure/Function Dialog}
\b _EdProcList( )
\par \pard \plain\fs20
\par Invokes the procedure/function list dialog.
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdProcList(nWhandle)
\par
\par nWhandle
\par \plain\fs20
\par The whandle of the program file being edited.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b Remarks\plain\fs20
\par
\par Regardless of the action taken, this function always returns .T. Calling this function with an inappropriate value may cause VFP to generate a General Protection Fault.
\par
\par \b See Also\plain\fs20 - \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:001e}
{\up $}{\footnote\pard\plain{\up $} _EdRedo}
{\up #}{\footnote\pard\plain{\up #} 1CJTFM}
\pard\keepn\sb235\sa55 {\up K}{\footnote\pard\plain{\up K} _EdRedo;Redo}
\b _EdRedo( )
\par \pard \plain\fs20
\par Repeats the last action cancelled by _EdUndo().
\par
\par \b Syntax\plain\fs20
\par
\par \f2\b llresult = _EdRedo(nWhandle)
\par
\par nWhandle
\par
\par \plain\fs20 The whandle of the editing window.
\par
\par \b Returns\plain\fs20
\par
\par Logical
\par
\par \b Remarks\plain\fs20
\par
\par This function always returns .T.
\par
\par \b See Also\plain\fs20 - \uldb _EdUndo\plain\fs20 {\v 1CN2FM}, \uldb _EdUndoOn\plain\fs20 {\v 88ULOD}, \uldb Invalid whandles\plain\fs20 {\v 0ZFR8E}
\par \page
{\up +}{\footnote\pard\plain{\up +} BROWSE0001:001f}