B4J Question Question about DIM and resource allocation

marcick

Well-Known Member
Licensed User
Longtime User
When in the same module I have multiple identical declaration like for example:

Dim Cursor1 as resultset:

There are no warnings, but what happen really ?

A new memory allocation is involved or the same one is overwritten ?

And (before an answer arrive) is the behaviour the same for any type of declaration and any platform (B4i, B4A) ?
 

marcick

Well-Known Member
Licensed User
Longtime User
Local.
Often I declare it in the specific point where I need, for example

Dim Cursor1 As ResultSet=con.ExecQuery2("SELECT * ..........:
 
Upvote 0
Top