Staz Software
HomeFutureBasicSharewareOrderContact

Tech Notes

Swap doesn't always (...swap)

It is OK to use FBII's well worn pseudo records in the cube (FB^3), but you need to keep in mind that some of the old limitations that were inherent in such a structure still remain. For instance, FBII stored a type (but not a size) for its string records.

DIM RECORD myRecord
 DIM 26 myString$               // This won't work!
 DIM myOtherVarIsAVolvo%
DIM END RECORD .myRecordSize

DIM myArray.myRecordSize(100)

SWAP myArray.myString$(1),myArray.myString$(2)

If you are going to use SWAP, possible solutions are:

  • DIM all strings in old records without a size limit so that they are 256 bytes long.
  • Handle the SWAP manually by transferring data into another variable during the process.
  • Use true records instead of the old pseudo records.
  • FutureBASIC

    Demo

    Order

    Tour

    Tech Notes

    FAQ

    Sample Code

    Web Sites

    Mailing List

    System
    Requirements

    blank