Internet Direct (Indy) Version 9.0.2 Beta
TIdGopherServer.ReturnGopherItem
Formats a Gopher menu item for display.

function ReturnGopherItem(ItemType: Char; UserFriendlyName: String; RealResourceName: String; HostServer: String; HostPort: Integer): String;
Parameters
ItemType: Char
GOpher item type.

UserFriendlyName: String
Display name for the menu item.

RealResourceName: String
Item selector or TN3270 hint.

HostServer: String
The server hosting the Gopher menu item.

HostPort: Integer
The port number for the Gopher server.

Returns
String - Display values for the Gopher menu item.

Description
ReturnGopherItem is a String function that returns a properly formatted Gopher menu item provided with the information from the parameters.

ItemType should be one of the following constants defined in GopherConsts.