What does this do - TestThis(hello)

I was recently asked a ColdFusion question during a job
interview. I was asked as to what this line of code does.
<CFSET SomeVariable = TestThis(hello)>
My first thought was that this creates a structure with
"hello" as a key. But then I started to think that this is sending
"Hello" into a custom tag. Can anyone shed some light on this. I
just want to know if my initial response was correct since I was
just guessing. Thanks!

My take - a variable named "hello" is being passed into a
function named "TestThis". The "TestThis" function returns a value
which is stored in a variable named "SomeVariable".

Similar Messages

Maybe you are looking for

  • Can you help me understand these 2 update rule lines

    Hi, ODS1 has field1, field2 with data. Field1 and field2 have also been included in ODS2 and I see the code which reads from ODS1 to fill ODS2: i.e. in the startup routine for ODS2 I see: Data: begin of i_logxxx occurs 0, Field1 like /BIC/AAlogxxx00-

  • Check space in the end to display warning message.

    I am currently working on validations on functional locations in the EDIT MASK. the code is already written for validations on to check for space in the beginning of the each level in the edit mask. however user requirement is that the program should

  • Ways to add photos to a collection?

    When editing images (meaning, performing selects/rejects) I like to use collections. Is there (or can there be) a better way to add images to a specific collection other than dragging & dropping? It might be beneficial to have a contextual menu to se

  • Compatible Superdrives?

    The original superdrive, a Pioneer DVR-103, seems to be ready to die. What other superdrive models will be compatible with my system? I would prefer to use Apple OEM, as I'm concerned about being able to boot from this, the only drive in the machine.

  • Windows 7 print spooler won't start

    I upgraded my Dell Inspiron 545 from Vista to Windows 7 Home Premium a week ago and have only been able to print one document since then. Under Vista my Canon MP610 and Lexmark 705 printers both worked, but no luck with Windows 7. I keep getting the