type conversion

Hello everyone,
      I have a simple question: how to convert a string to a port? I extract the
port information from a string and need to assign it to a port variable. Any
suggestion will be appreciated.

Bing