[Overview][Types][Classes] Reference for unit 'uWordList' (#pLua)

TWordList.ListWordsFromLetters

Declaration

Source position: uWordList.pas line 70

public procedure TWordList.ListWordsFromLetters(

  WhatLetters: AnsiString;

  List: TStrings;

  MinCharacters: Integer = -1;

  MaxCharacters: Integer = -1

);

Arguments

WhatLetters

  

String containing the letters to look for.

List

  

TStrings object that will recieve the list of words found within the word list.

MinCharacters

  

The minimum number of letters that must appear within the word (length) for it to be added to the list.

MaxCharacters

  

The maximum number of letters that must appear within the word (length) for it to be added to the list.

Description

Returns a listing of words from the letters that are passed in to this method. As an example from the word "gdo" it may return the following results:

  1. Do
  2. Dog
  3. God

The letters are each only used once, so if you want to test for multilple occurances of a letter you must include it the same number of times.