I'm using the Message.PowerObjectParm object and when my structure is returned(by using the closedwithreturn() function, I'm getting a null object reference.
Here is my code:
window one:
OpenWithParm(window_two,i_structure_one)
i_structure_two = Message.PowerObjectParm
ll_start = i_structure_two.sl_start_time_slot
Window two:
i_structure_two.sl_start_time_slot = ll_first_highlighted_row
i_structure_two.sl_end_time_slot = ll_last_highlighted_row
i_structure_two.sd_appt_date = id_appt_date
CloseWithReturn(parent,i_structure_two)
When I'm in debug mode, window two script does populate the structure. So I know that it is not null. However, when I return to window one script, the message object is empty/null and it causes an null object ref when I try to access it.
Why is the object empty when I return to window one?
Thanks,
Keith
Here is my code:
window one:
OpenWithParm(window_two,i_structure_one)
i_structure_two = Message.PowerObjectParm
ll_start = i_structure_two.sl_start_time_slot
Window two:
i_structure_two.sl_start_time_slot = ll_first_highlighted_row
i_structure_two.sl_end_time_slot = ll_last_highlighted_row
i_structure_two.sd_appt_date = id_appt_date
CloseWithReturn(parent,i_structure_two)
When I'm in debug mode, window two script does populate the structure. So I know that it is not null. However, when I return to window one script, the message object is empty/null and it causes an null object ref when I try to access it.
Why is the object empty when I return to window one?
Thanks,
Keith