Hi,
I've got the following code in my html template:
`repeat with i from 1 to g_curr_name.DIM` <option value="`g_curr_code<i>`">`g_curr_name<i>`</option> `end`
This works fine, it displays all the values I've set from my program. But I want to default the selected value to be USD. Currently the list is sorted alphabetically so USD is somewhere in the middle.
What's the correct code to check if the code is USD and then make that the selected one? Maybe something like this:
`repeat with i from 1 to g_curr_name.DIM` `if ( g_curr_code = "USD" )` <option selected value="`g_curr_code<i>`">`g_curr_name<i>`</option> `else` <option value="`g_curr_code<i>`">`g_curr_name<i>`</option> `end` `end`
This code doesn't work and I've tried a few other ways but nothing works. I don't know HTML so I might be making a basic error.
Thanks for your help.
Gill