Platforms to show: All Mac Windows Linux Cross-Platform

GetAutoMemoryAddressMBS(o as auto) as integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method XojoRuntime MBS Util Plugin 17.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used.
Queries memory address of auto object.
Example
Dim t As Auto = "Hello World"
Dim o As Auto = "Hello "

o = o + "World"

Dim s As Auto = t

Dim ta As Integer = GetAutoMemoryAddressMBS(t)
Dim oa As Integer = GetAutoMemoryAddressMBS(o)
Dim sa As Integer = GetAutoMemoryAddressMBS(s)

// s and t show same address, but o is different
MsgBox Hex(ta)+EndOfLine+Hex(oa)+EndOfLine+Hex(sa)

// and s and t show address in const segment in the app, while o is dynamically allocated and has an heap address

Allows you to compare if two variables refer same object.

Some examples using this global method:

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...