get the size of a variable

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

get the size of a variable

Post by jmburnod » Sun Jul 17, 2011 9:35 am

Hi All,
Following the topic "Delete local : good practice" of bangkok
Is there a way to get the size of a variable in LC ?

Best regards

Jean-Marc
https://alternatic.ch

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: get the size of a variable

Post by Klaus » Sun Jul 17, 2011 10:37 am

Bonjour Jean-Marc,

not directly, but maybe you can get the length: -> length(tVariable)
of the variable, each char will be ca. 1 Byte?


Best

Klaus

Post Reply