I occasionally see this. If I set a breakpoint somewhere in the code the return of the class is Nil.
This code is supposed to return the class, but if I set a breakpoint, or just trace the process and enter this method, it returns Nil.
Otherwise it function properly.
Why?
[code]//nxtPRow As Integer
//Called to update list And by App.OpenAFile And ClRndAry.FillForRandom
//Default for every user outside is App.TPrfDapt
//ClRndAry has ClRndAry.ScpyDat to not Edit the original
//AddCardWindow has AddCardWindow.AcwRw because it can be new or imported
Dim np As New RowPrfClass()
Dim i As Integer
If nxtPRow > -1 And nxtPRow <= YPUbnd Then
For i = 0 to kPCols
np.dapta(i) = PractFSets(nxtPRow).dapta(i)
Next
np.actve = PractFSets(nxtPRow).actve
np.id = PractFSets(nxtPRow).id
np.isFolder = PractFSets(nxtPRow).isFolder
np.isOpen = PractFSets(nxtPRow).isOpen
np.parent = PractFSets(nxtPRow).parent
End If
Return np
[/code]