- ATK Gimmy Susan
- PowerBuilder
- Friday, 31 August 2018 02:13 PM UTC
Hello
I created a function with the code below.
How i replace the last parameter (string as_position)
with an enumerated?
What Argument Type should I use?
Thansk
Parameters:
string as_window_name
wn_main_master ao_wn_pointer
string as_position
Code:
[omissis]
choose case as_position
case 'L'
li_rc = OpenSheetDocked (ao_wn_pointer, ls_name, go_ac.of_get_controller_window (), WindowDockLeft! , ls_unique)
'R' case
li_rc = OpenSheetDocked (ao_wn_pointer, ls_name, go_ac.of_get_controller_window (), WindowDockRight! , ls_unique)
'T' case
li_rc = OpenSheetDocked (ao_wn_pointer, ls_name, go_ac.of_get_controller_window (), WindowDockTop! , ls_unique)
case 'B'
li_rc = OpenSheetDocked (ao_wn_pointer, ls_name, go_ac.of_get_controller_window (), WindowDockBottom! , ls_unique)
end choose
[omissis]
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.