Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
what's difference between Variant and TVarRec?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Common File Dialogs Have ...
by
rvk
[December 05, 2024, 11:54:16 pm]
ZUGFeRD: Which PDF lib to...
by
mtrsoft
[December 05, 2024, 11:47:24 pm]
C operators and shift
by
Warfley
[December 05, 2024, 11:19:19 pm]
Map vs dataset
by
silvercoder70
[December 05, 2024, 10:51:10 pm]
Tmemo add char like typin...
by
ackarwow
[December 05, 2024, 10:47:59 pm]
[SOLVED] Howto use a DEFI...
by
PascalDragon
[December 05, 2024, 08:59:54 pm]
Python4Lazarus Undefined ...
by
AlexTP
[December 05, 2024, 08:42:33 pm]
Inversive Geometry Curves...
by
Dzandaa
[December 05, 2024, 06:39:58 pm]
mxMarkEdit, a new visual ...
by
maxnd
[December 05, 2024, 06:08:17 pm]
kernel 6.8 and checking s...
by
MarkMLl
[December 05, 2024, 06:04:53 pm]
How much would it hamper ...
by
Martin_fr
[December 05, 2024, 05:01:02 pm]
Api/component pack for Ra...
by
MarkMLl
[December 05, 2024, 04:47:33 pm]
compiler messages suggest...
by
Thaddy
[December 05, 2024, 04:15:17 pm]
Wrong resolution of secon...
by
Apiglio
[December 05, 2024, 03:13:47 pm]
Benchmarks
by
Warfley
[December 05, 2024, 02:00:39 pm]
Breakpoint dosn't work
by
Martin_fr
[December 05, 2024, 01:13:30 pm]
[Solved]I have created dl...
by
Packs
[December 05, 2024, 01:11:27 pm]
TLazSerial : serial port ...
by
tetrastes
[December 05, 2024, 12:26:29 pm]
Bright color
by
Warfley
[December 05, 2024, 10:29:06 am]
[Solved] pointer to out o...
by
440bx
[December 05, 2024, 12:51:22 am]
storing string
by
ASerge
[December 04, 2024, 11:06:57 pm]
Show Form at Top
by
n7800
[December 04, 2024, 10:16:21 pm]
Arrow keys in FV
by
HotShoe
[December 04, 2024, 10:04:56 pm]
"Active $IFDEF code" is r...
by
MarkMLl
[December 04, 2024, 09:49:15 pm]
NSHapticFeedbackPerformer
by
msintle
[December 04, 2024, 09:47:25 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: what's difference between Variant and TVarRec? (Read 923 times)
egsuh
Hero Member
Posts: 1489
what's difference between Variant and TVarRec?
«
on:
April 24, 2024, 05:24:24 pm »
They seem very similar. Well, TVarRec is variant record. But isn't variant variant record?
Logged
ASerge
Hero Member
Posts: 2337
Re: what's difference between Variant and TVarRec?
«
Reply #1 on:
April 24, 2024, 07:09:52 pm »
Quote from: egsuh on April 24, 2024, 05:24:24 pm
They seem very similar. Well, TVarRec is variant record. But isn't variant variant record?
Do not confuse TVarRec with TVarData, which is the internal representation of Variant.
TVarRec is an element of the array of const.
Logged
PascalDragon
Hero Member
Posts: 5755
Compiler Developer
Re: what's difference between Variant and TVarRec?
«
Reply #2 on:
April 25, 2024, 09:28:59 pm »
Quote from: egsuh on April 24, 2024, 05:24:24 pm
They seem very similar. Well, TVarRec is variant record. But isn't variant variant record?
Variant
by itself is an opaque type backed by a variant record (
TVarData
) that also allows to invoke methods and properties on the
Variant
(compared to
TVarRec
). Another modern variant record is
Rtti.TValue
.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
what's difference between Variant and TVarRec?
TinyPortal
© 2005-2018