Ray, IIRC redim in Cobblers allows you to lay one data definition over the
space previously defined for another variable, ie give the same storage two
data type definitions.
NO, BB does not provide this capability. The REDIM others have mentioned was
in B/V (and maybe bb) to allow you to change the size of an array.
I once wrote routines in SPL to allow B/V to move data between data types,
or do conversion from a type not supported by B/V to one it did allow - eg
32bit ints to floats and back, convert packed decimal to long float.
Its only a couple of lines of C to move/convert data types in a
subroutine... we will have them here somewhere....do you want me to look?
One way to do it is have a binary work file that you can write one data type
to, and read back as another. Eg we used to write data to sort files from
image and append the record address short ints to the end from the status
array, but read them back as 4 bytes, and pass them as key to a mode 4
DBGET, and it works fine AS LONG AS THE FILE IS FB type.
Hth
jp
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf
Of Ray Shahan
Sent: Thursday, 17 August 2006 2:41 AM
To: [log in to unmask]
Subject: [HP3000-L] Business BASIC question
Hi all,
I've scoured the manual, but can't seem to locate this
concept (and it may be because it's not supported). In COBOL (and other
languages), one can REDEFINE a variables attributes, but I can't seem to
find any such concept for BB. Does anyone know if this can be done in
BB, and if yes, how to do it?
TIA,
Ray S.
<http://www.republictitle.com/>
Ray Shahan
Computer Programmer
REPUBLIC TITLE OF TEXAS, INC. <http://www.republictitle.com/>
2701 W Plano Parkway
<http://maps.yahoo.com/maps_result?addr=2701+w+plano+parkway&csz=75075&c
ountry=us&new=1&name=&qty=>
Plano, TX 75075
direct 214.556.0202
main 972.578.8611
fax 972.424.5621
www.republictitle.com <http://www.republictitle.com/>
[log in to unmask]
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|