Variants

0

Co to jest Variants??

0

Variants znaczy po polsku zmienne
Może chodzi Ci o Variant (F1)

By default, Variants can hold values of any type except records, sets, static arrays, files, classes, class references, and pointers. In other words, variants can hold anything but structured types and pointers. They can hold interfaces, whose methods and properties can be accessed through them. (See Object interfaces.) They can hold dynamic arrays, and they can hold a special kind of static array called a variant array. (See Variant arrays.) Variants can mix with other variants and with integer, real, string, and Boolean values in expressions and assignments; the compiler automatically performs type conversions.
<font size="1">pomoc Delphi7</span>

0

Variants to też moduł.

0

Variants znaczy po polsku zmienne

Wg jakiego słownika??

Zmienna to VARIABLE
Variant to typ zmiennej. Coś jak string, integer itp.

Z tym, że Variant może przechowywać każdy typ*. Tzn, że np mamy funkcję, która w zależności od czegoś może zwracać string, lub integer, bądź boolean.

Wtedy zadeklarować możemy tak:

function MojaFunkcja: variant;

To taki prosty przykład.

*tak naprawdę każdy oprócz rekordów, wskaźników, tablic dynamicznych. Aczkolwiek na to są sposoby - f1.

0

Wg jakiego słownika??

Chyba nie zrozumiałeś :). Nie chodziło o to, że variants=moduł po angielsku, tylko że jest taki moduł, jak variants :).

0

Wg jakiego słownika??

Chyba nie zrozumiałeś :). Nie chodziło o to, że variants=moduł po angielsku, tylko że jest taki moduł, jak variants :).

No wiesz.
"Variants znaczy po polsku zmienne" to dla mnie jednoznaczna bzdura :D

0

na myśli miałem to co napisałe Juhas - przepraszam, dałem ciała [glowa]

1 użytkowników online, w tym zalogowanych: 0, gości: 1