TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: JAMES GOLDBLOOM
date: 1996-03-15 23:33:00
subject: STRUCTURES FROM TP TO PB

HELP
----
Ok, I am REALLY close to perfecting my technique for converting Turbo
Pascal file structures to PB format.  I am stuck on the array portions.
I need help with ONE structure, on how to convert it (MY code after this):
------------- TP STRUCTURE -------------------------------------
  SysInfoRecord = record
                    CallCount        : LongInt;
                    LastCallerName   : String[35];
                    LastCallerAlias  : String[35];
                    ExtraSpace : array[1..92] of Byte;
                  end;
---------------------------------------------------------------
Converted to PB, it looks like, and works properly (up to the alias) as:
------------------- PB STRUCTURE ------------------------------
TYPE SysInfoRecord
                        CallCount           as long
                        LastCallNameLen     as string * 1
                        LastCallName        as string * 35
                        LastCallerAliasLen  as string * 1
                        LastCallerAlias     as string * 35
                        ExtraSpace          ?? what goes here ??
END TYPE
--------------------------------------------------------------
Look to the right of "ExtraSpace" above in my code... I don't know
what comes next to match the TP structures shown in the first snippet!
The problem is the "ExtraSpace" arrays in TP, I don't know the proper
PB syntax to deal with this data.  What do I use for those, which I
assume to signify extra chars up to the limits of that field position
taking into consideration each fields actual length...?
HELP!!!!!  I will definitely need an example on this!
;-) 
-James (SysOp/AD Message System)
--- QuickBBS 2.80 GoldBase (Zeta-1)
---------------
* Origin: AD Message BBS/10th Year Online! (703)241-1826 (1:109/611@FIDONET)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.