array vs. string question
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: array vs. string question

  1. #1
    For the love of ~GIMP~ calmchess's Avatar
    Join Date
    Sep 2006
    Posts
    2,587

    array vs. string question

    Hi I have a parameter to a function that can either be an array or it can be a string. How do I write an if statement that will do 1 thing if its an array and another if its a string? And yes it has to be dual usage under the same parameter. I use a ild card * to type the parameter so it can be either one. Please help I'm stuck!

    --calmchess
    ~calmchess~

  2. #2
    For the love of ~GIMP~ calmchess's Avatar
    Join Date
    Sep 2006
    Posts
    2,587
    I just found the solution typeof() thanks for taking the time to read this

    --calmchess
    ~calmchess~

  3. #3
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    661
    Quote Originally Posted by calmchess View Post
    thanks for taking the time to read this
    You're welcome.

    p s why not two functions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center