Control with type (select list)

i created a new control with type (select list), its lookup method is Automatic. I want to retrieve the value selected by user in the background, how can we do this in Scriptcase environment.

i used the next code, but it retrieve null.

$selected_value = {select_list_control_name};

In the Sql box of hte Select List you have to put :

whatever = {selected_vlaue_field}