I would say that this is the analogy of the problem I encountered when I needed to change the data type as needed. When reading WAV files, a record of either _UNSIGNED _BYTE or INTEGER, or LONG, or SINGLE. Also, you can not enroll
SELECT CASE Music_type
CASE 8bit: DIM S AS _UNSIGNED _BYTE
CASE 16bit: DIM S AS INTEGER
CASE 24bit: DIM S AS LONG
CASE 32bit: DIM S AS SINGLE
END SELECT
although it would make it easier for you to work, it would not be compatible with QB4.5
But if it can be done somehow (so S was the type as needed, so please give a sample here). Thank you.