Главная страница | назад





Article #20499: How to use Format in C++ Builder

Question:
How is Format used in C++ Builder?
Answer:
int x = 5;
int y = 25;
TVarRec vr[] = {x, y};
Caption = Format("Pick a number between %d and %d.", vr, 2);
//The third parameter is the number of members of the array
//TVarRec can contain a variety of other types

Last Modified: 07-JAN-00