Posts

Showing posts with the label WITH Loop

WITH Loop / Statement

WITH Loop / Statement WITH Statement or loop is used to make record variables easier.  Record variable is a complex datatype with one variable we can store multiple values like arrays. Each record having different fields and each of these fields can able to store different data types also. These fields are separated by the ' . ' or dot sign. If a customer record having field named Name then it can be specified like customer.Name Syntax Of WITH Loop Suppose we having three fields names name, address and City then it can be specified in the recod named customer as folows      customer.Name := Txt[1];      customer.Address := Txt[2];      customer.City := Txt[3]; We can sort these kind of representation in the system different way so that we can minimise the number of codings that syntax of WITH Loop is as follows ----------------------------------------------------------------------------            WITH Record Variable DO Statement ---------------------------------------------...