Re: [BLACKBOX] Variant Records vs. Component Pascal
----boundary-LibPST-iamunique-1935779743_-_-
Content-type: text/plain
Thanks to Douglas and Bob for their quick replies, regarding my problem migrating a database using Modula-2 variant records to Component Pascal. In Modula-2, I had variant records, and was able to use the same sorting routine with each of the variants.
In Component Pascal I tried using a base EXTENSIBLE record, and each of the variant record types as an extension of the base. The problem was that I couldn't pass each of the variants to the sorting routine, and it looked as though I would need a separate sorting routine for each variant.
Douglas's method looks like it would work if indeed I did all my sorting on variables that were common to the base record type, but alas that is pretty limiting. Bob's method looks like it might solve my problem, but I'll have to bang my head with a brick some more to be sure I understand it. Thanks again and Happy New Year to both of you!
Steve Troy
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
----boundary-LibPST-iamunique-1935779743_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbWh0bWwxIFxkZWZmMHtcZm9udHRibA0Ke1xmMFxm
c3dpc3NcZmNoYXJzZXQwIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYy
XGZuaWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIg
TmV3O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1
O30NClx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjQgDQp7XCpcaHRtbHRhZzE5IDxo
dG1sPn0NCntcKlxodG1sdGFnNTAgPGJvZHk+fXtcKlxodG1sdGFnNjR9XGh0bWxydGYge1xodG1s
cnRmMCANCntcKlxodG1sdGFnODQgPHNwYW4gc3R5bGU9ImZvbnQtZmFtaWx5OlZlcmRhbmE7IGNv
bG9yOiMwMDAwMDA7IGZvbnQtc2l6ZToxMHB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