The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ScanNextFormPart


Unit:SDL_cform
Class:TMolForm
Declaration:function ScanNextFormPart (Instring: string; var index: integer; var AtNr, AtWt, AtNum: integer): boolean;

The method ScanNextFormPart scans the string Instring containing a molecular formula and returns the next valid part of a molecular formula. The scanning starts at position index. If a valid atom specification is found, the parameters AtNr, AtWt, and AtNum contain the corresponding values and the function returns a TRUE value. The value of index is set to the next unprocessed position of Instring. The format of the string has to be equal to the format of the property MolFormula.




Last Update: 2023-Dec-13