Hi,
We have found a problem with the dropdown in edit mode. It does not always pick up the selected value, or even does not load anything. This is both the case for select from static lists as for database.
For example we had a dropdown with the values 100, 10, 1, 0, 0.1, 0.01
The problem is solved when we add trim around the functions see belkow. Maybe this can be added to the new version?
for ind=LBound(arr) to UBound(arr)
bYes = false
if IsNumeric(arr(ind)) then
if CInt(trim(arr(ind))) = trim(strValue) then bYes = true
end if
if trim(arr(ind))=trim(strValue) or bYes then
BuildSelectControl = BuildSelectControl & "<option value=""" & arr(ind) & """ selected>" & arr(ind) & "</option>"
else
BuildSelectControl = BuildSelectControl & "<option value=""" & arr(ind) & """>" & arr(ind) & "</option>"
end if
next