I am trying to manipulate the contents
of a list box with xBasic ...
I am adding the contents of a global variable
to the end of the "settings.dynamic_list" for the list box
The FORM is called "Merge_Picker"
The LIST BOX is called "MergePicked"
its properties for "Choices" says "Populated using XBasic"
I have a value in global variable gMergeAvail
that I want to append to the list
The following code on the "On Push" event of a button
runs without error but my new updated dynamic list
does not appear with the gMergeAvail contents of the form
If I display the oPicked.settings.dynamic_list
in the trace window - it is correct
My form just will NOT show the updated list box ???
**********************************
Dim oPicked as P
' Get the Address of the Picked List box
oPicked = :Merge_Picker:MergePicked.This
trace.writeln("Before")
trace.writeln(oPicked.settings.dynamic_list)
oPicked.settings.dynamic_list = oPicked.settings.dynamic_list + gMergeAvail + crlf()
trace.writeln("After")
trace.writeln(oPicked.settings.dynamic_list)
:Merge_Picker.Refresh_Layout() ' Tried this
:Merge_Picker.refresh_fields() ' Also tried this
:Merge_Picker.Show() ' Also tried this
**********************************
Any help please
THANKS
Bob Wilkins
Burlington, Ontario
of a list box with xBasic ...
I am adding the contents of a global variable
to the end of the "settings.dynamic_list" for the list box
The FORM is called "Merge_Picker"
The LIST BOX is called "MergePicked"
its properties for "Choices" says "Populated using XBasic"
I have a value in global variable gMergeAvail
that I want to append to the list
The following code on the "On Push" event of a button
runs without error but my new updated dynamic list
does not appear with the gMergeAvail contents of the form
If I display the oPicked.settings.dynamic_list
in the trace window - it is correct
My form just will NOT show the updated list box ???
**********************************
Dim oPicked as P
' Get the Address of the Picked List box
oPicked = :Merge_Picker:MergePicked.This
trace.writeln("Before")
trace.writeln(oPicked.settings.dynamic_list)
oPicked.settings.dynamic_list = oPicked.settings.dynamic_list + gMergeAvail + crlf()
trace.writeln("After")
trace.writeln(oPicked.settings.dynamic_list)
:Merge_Picker.Refresh_Layout() ' Tried this
:Merge_Picker.refresh_fields() ' Also tried this
:Merge_Picker.Show() ' Also tried this
**********************************
Any help please
THANKS
Bob Wilkins
Burlington, Ontario
Comment