|    18/02/06 ~ 8:36 -0800 :
|    Phil M,
|         " Re: coercing a string to a picture "


Unfortunately, there is no way to use a string as a variable. So what you will need to do is to use some other method:

  Function GetMyPicture(name As String) As Picture
    Select Case name
    Case "cat"
      Return CatPicture
    Case "dog"
      Return DogPicture
    Case "elephant"
      Return ElephantPicture
    Else
      Return Nil    // requested picture doesn't exist
    End Select
  End Function

Efficient, but quite boring to install when you have 200+ pictures...
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to