Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

Noob question - Array

Hi. I would like to have an array in Rapid, with the size that would be determined in RAB. Is this possible? In the manual it says arrays in rapid are initialized in compilation time

Comments

  • No, as you said you have to dimension arrays at declaration, and it is not possible to re-dim arrays.
     

    However, It is possible to use the CreateRapidData function to create RAPID data (incl. arrays) programmatically. I'm not sure how practical this would be in practice, as it may cause a loss of program pointer, etc. when you load or modify a module.
    Russell Drown