Question on a structure string

Started by Peter.Higgins, September 16, 2020, 10:34:34 AM

Previous topic - Next topic

Peter.Higgins

Curious why the following is true for parsing a FIB record?
Version 17,  1410-664

DIM cFibRec$::"RecordCnt:C(3),Name:C(6),Format:C(1),ExternalKey:C(1),MaxRecs:C(3),RecordSize:C(2),KeyedFileFlg:C(1),threshold:C(1),FileType:C(1),ExternalHandle:C(1),Unusedfields:C(4),Path:C(60),KeySegments:C(384)"

This works to parse the record.
X$=FIB(WRK)
cFibRec$=X$

This does not work.
cFibRec$=FIB(WRK)
Anyone know?

EVa

What do you mean by "This does not work" - are you getting an error or does cfibrec$ remain empty or ... ?

-Eric-

Peter.Higgins

Hi Eric,
Missed you at Direxions! 
What was meant is the result was not a structure, just a string.   
Yesterday same environment gave consistent negative results with a direct assignment.
Today I retest same code both ways, and voila, it works both ways. 
:o