Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ArrayAppend

Explorer ,
Mar 19, 2012 Mar 19, 2012

This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f21.html

366
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 19, 2012 Mar 19, 2012
LATEST

Remember that this function returns true or false, not a copy of the array with the new membwer added.

If you do

myarray= ArrayAppend(myarray, newMember);

myarray becomes true or false, and you will get the error "Object of type class.lang.Boolean cannot be used as an array".

Found this out the hard way :o(

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources