Dec 062017
 
TPW routines for using the Paradox Engine with Turbo Pascal for Windows, from the Borland BBS.
File TPWPXENG.ZIP from The Programmer’s Corner in
Category Pascal Source Code
TPW routines for using the Paradox Engine with Turbo Pascal for Windows, from the Borland BBS.
File Name File Size Zip Size Zip Type
BUFCLOSE.PAS 562 297 deflated
BUFCOPY.PAS 799 353 deflated
BUFEMPTY.PAS 653 327 deflated
BUFOPEN.PAS 558 300 deflated
DATEDEC.PAS 921 411 deflated
DATEENC.PAS 445 267 deflated
ERRMSG.PAS 404 256 deflated
ERRUSER.PAS 643 366 deflated
FILELOCK.PAS 426 262 deflated
FLDBLANK.PAS 834 380 deflated
FLDHAND.PAS 668 345 deflated
FLDNAME.PAS 720 373 deflated
FLDTYPE.PAS 759 376 deflated
FUNLOCK.PAS 428 263 deflated
GETALPHA.PAS 866 412 deflated
GETDATE.PAS 936 416 deflated
GETDEF.PAS 1303 462 deflated
GETDOUB.PAS 838 391 deflated
GETLONG.PAS 838 389 deflated
GETSHORT.PAS 836 381 deflated
GOTOLOCK.PAS 730 341 deflated
HARDERR.PAS 651 381 deflated
INIT.PAS 316 213 deflated
KEYADD.PAS 538 313 deflated
KEYDROP.PAS 375 244 deflated
KEYNFLDS.PAS 590 326 deflated
NETINIT.PAS 314 212 deflated
PSWADD.PAS 542 297 deflated
PSWDEL.PAS 654 338 deflated
PUTALPHA.PAS 780 371 deflated
PUTBLANK.PAS 735 349 deflated
PUTDATE.PAS 887 409 deflated
PUTDOUB.PAS 800 387 deflated
PUTLONG.PAS 796 383 deflated
PUTSHORT.PAS 795 372 deflated
PXEXIT.PAS 360 237 deflated
README.DOC 1632 759 deflated
RECAPP.PAS 614 315 deflated
RECDEL.PAS 485 282 deflated
RECFIRST.PAS 483 281 deflated
RECGET.PAS 598 307 deflated
RECGOTO.PAS 550 309 deflated
RECINS.PAS 616 315 deflated
RECLAST.PAS 493 286 deflated
RECLCKED.PAS 570 311 deflated
RECLOCK.PAS 689 338 deflated
RECNEXT.PAS 493 286 deflated
RECNFLDS.PAS 599 319 deflated
RECNUM.PAS 581 308 deflated
RECPREV.PAS 509 290 deflated
RECUNLCK.PAS 579 309 deflated
RECUPDAT.PAS 606 310 deflated
SAVE.PAS 902 416 deflated
SETDEF.PAS 643 380 deflated
SRCHFLD.PAS 913 410 deflated
SRCHKEY.PAS 940 427 deflated
TBLADD.PAS 417 256 deflated
TBLCHGED.PAS 583 315 deflated
TBLCLOSE.PAS 450 268 deflated
TBLCOPY.PAS 420 256 deflated
TBLCREAT.PAS 705 361 deflated
TBLDECRY.PAS 437 263 deflated
TBLEMPTY.PAS 365 233 deflated
TBLENCRY.PAS 420 257 deflated
TBLEXIST.PAS 507 286 deflated
TBLLOCK.PAS 532 297 deflated
TBLMAXSZ.PAS 796 411 deflated
TBLNAME.PAS 617 336 deflated
TBLNRECS.PAS 581 321 deflated
TBLOPEN.PAS 446 269 deflated
TBLPROTE.PAS 584 300 deflated
TBLREFR.PAS 513 297 deflated
TBLREN.PAS 396 246 deflated
TBLUNLCK.PAS 583 324 deflated
USERNAME.PAS 443 270 deflated

Download File TPWPXENG.ZIP Here

Contents of the README.DOC file


Paradox Engine 2.0 under Turbo Pascal For Windows
_____________________________________________________________________________


The following documents the differences between the syntax for calling
Paradox 2.0 functions as found in the Paradox Engine Pascal Reference and
how they need to be called from Windows.

To compile and run the sample programs, add the following as your uses
statement:

uses PXEngine, WinCrt;

The function PX is not supported, but you can use the following in the
sample programs so that they compile and run:

procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
and;

You Must use PXWinInit instead of PXInit:
PX(PXWinInit('MyApp', pxShared));

Data Type Changes:
NameString needs to be declared as type PChar,
The type TDate is Longint, and
FieldHandleArray = array[i..j] of FieldHandle;
variables of type boolean need to be changed to type Bool, and add
Uses WinTypes;

fuctions that have a string as a parameter type to a function now
need a parameter of type pChar. You can use an array[0..N] of char.
Then use the address of the array for the parameter.

In PXGetDefaults() and PXSetDefaults(), the var SortOrder is of type char
not pointer, and the SortOrder constants are as follows:

SortOrderAscii = 'a'; { ASCII sort order }
SortOrderInt = 'i'; { international sort order }
SortOrderNorDan = 'n'; { Norwegian/Danish sort order }
SortOrderSwedFin = 's'; { Swedish/Finnish sort order }

PXLoadOverlay function is not implemented in Windows (of Course!).


 December 6, 2017  Add comments

Leave a Reply