You silly, silly people.... if you have data inside an ext plugin that you want displayed in a custom list without saving to a file only to load back into RR Daaaa...ie directly load into the list...
Here is an example of how to do this:
(sorry for the poor layout, tried to keep it narrow as possible for the posting)
BTW...You welcome...
Code:
Public Function ProcessCommand(CMD As String, frm As Object) As Integer
Select Case LCase(CMD)
Case "scn_memberlist"
If frm.ShowCL Then '<-- Check if current screen has a custom list
LoadRecords '<-- Function that retrieves data/info and stores it in the Names array
frm.CL.Clear (-1) '<-- Clears the custom list of all items ( Same as "CLCLEAR;ALL" )
If UBound(Names) > 0 Then '<-- Check if array was filled with data
Dim x As Integer
For x = 0 To UBound(Names)
DoEvents '<-- allows for outside application events to be processed,
'basically acts as a sleep in your loop
frm.CL.AddItem Names(x) + Chr(10) + Names(x)
'above line adds items to list,
'Chr(10) is the seperator for the Text & Desc item parts
'( Same As "CLADD;TEXT;DESC" )
Next
Else
frm.CL.AddItem "Reload List"
End If
frm.CL.CenterList '<-- This repaints/updats the control and centers it if needed
'( is a MUST USE to show properly )
End If
ProcessCommand = 2
End Select
End Function