Jump to content

function parameter debugging


Recommended Posts

For debugging purposes, I wish to display the name of a function parameter, not its value.

In this instance the function takes as a parameter a formlist, a simplified form of the function would start

Function dz_toggle_outfit(FormList outfits_array)

 

the function is called from several mcm menu toggle events and I need to know that the correct parameter is being passed to the function

However if i try:

debug.messagebox("outfits_array is "+outfits_array as string)

 

I still get a list of the formlist items as strings.

 

If the function is called as eg. dz_toggle_outfit(snowy_outfits[2])

(snowy_outfits[] being an array of formlists)

then I would like a debug statement in the dz_toggle_outfit function to display "snowy_outfits[2]"

 

How can I do this?

 

 

diziet

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...