Usually you can just let it stay open, and reuse the name. However, if you must close it, this is the way:
Use in Curs1
>Hello comunity
>
>i have the following script on my client/server application :
> for ex.
>
>Local msel as string
>text to msel textmerge noshow
>select ref from st (nolock) where ref like '1%'
>endtext
>
>
>if u_sqlexec(msel,[Curs1]) then
>select Curs1
> if not eof() then
> replace st.fieldA with Curs1.ref
> endif
>endif
>
>I need a command to close Cursor Curs1 after commit transaction, what command i do use :
>CLOSE ALL, CLEAR.......??
>
>Many thanks
>Luis Santos