I have a window that calls a function of a NonVisualObject. I want the function to return an array of a structure. The array of structure is empty when it returns to the window, alltough I'm sure it's not empty in the function. When I debug the program, and watch to the strucuture array in the Window, I get the message "Children could not be evaluated".
Is it not possible to return a structure array? Or am I doing something wrong?
Example:
I created a structure with 3 elements. F.e. str_Log with elements:
- string s_Function
- long l_Code
- string s_Message
NonVisualObject (n_NVO):
Window (w_Window):
So, in this window the lstr_Log is empty ("Children could not be evaluated").
Is it not possible to return a structure array? Or am I doing something wrong?
Example:
I created a structure with 3 elements. F.e. str_Log with elements:
- string s_Function
- long l_Code
- string s_Message
NonVisualObject (n_NVO):
Code:
// Instance variable:
str_Log istr_Log[]
public function str_Log[] uf_Function
...
istr_Log[1].s_Function = "uf_Function"
istr_Log[1].l_Code = 2051
istr_Log[1].s_Message = "Some text..."
// some more records could be added here ...
...
return istr_Log
Window (w_Window):
Code:
str_Log lstr_Log[]
lstr_Log = in_NVO.uf_Function()