Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

ArrayLength of Array referenced by pointer


JamesMc Oct 5, 2016 10:40 PM

Is it possible to report the ArrayLength of an Array variable referenced by a pointer?  Below is a sample program that I have I tried to do this with (unsuccessfully):

ConstTable
  Const X=3
  Const Y=4
EndConstTable

Public Array(X,Y), ArrayLen1, ArrayLen2
Public name As String
Public ptr As Long

BeginProg
  Scan (1,Sec,3,0)
    ArrayLen1 = ArrayLength(Array)
    ptr = @Array
    name = !(ptr)
    ArrayLen2 = ArrayLength(name)   
  NextScan
EndProg

 


Log in or register to post/reply in the forum.