abuch06 Posted August 10, 2007 Report Share Posted August 10, 2007 Is there anyway to set array to cluster size programically? Quote Link to comment
ned Posted August 10, 2007 Report Share Posted August 10, 2007 No, but if your array consists entirely of fixed-size types (booleans, numerics, and clusters containing only those types), then you can use a typecast node to convert the array to a cluster without having to set the number of elements. Quote Link to comment
abuch06 Posted August 10, 2007 Author Report Share Posted August 10, 2007 whats a typecast node? and where do i find it? Quote Link to comment
ned Posted August 10, 2007 Report Share Posted August 10, 2007 QUOTE(abuch06 @ Aug 9 2007, 10:12 AM) whats a typecast node? and where do i find it? http://forums.lavag.org/index.php?act=attach&type=post&id=6579''>http://forums.lavag.org/index.php?act=attach&type=post&id=6579'>http://forums.lavag.org/index.php?act=attach&type=post&id=6579 A typecast node coerces data from one type to another, so long as as the representations in memory are compatible. For example, you can take an array of U16 and typecast it to an array of U8 (the array length will be doubled), because a U16 in memory is stored identically to two consecutive U8s. See the help for more details. Quote Link to comment
abuch06 Posted August 11, 2007 Author Report Share Posted August 11, 2007 Thanks! that definitly helps! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.