# LoadStrings Method

## Applies to

THtmlViewer component

## Deprecated

Use method LoadFromString instead.

## Declaration

procedure LoadStrings(Strings: ThtStrings; const Reference: ThtString = '');

## Description

The LoadStrings method loads an HTML document from a TStrings object.

Reference is an optional reference parameter.

Example

Assume an HTML document exists in a TMemo object. The following line of code could be used to then copy the document to an THtmlViewer object:

    Viewer.LoadStrings(Memo1.Lines);

## See also

- LoadFromDocument Method
- LoadFromFile Method
- LoadFromStream Method
- LoadFromString Method