Hello, i am storing values to a variable as follows:
macro _sm_m_set(vu, of, dt, nv, ln a, b, c)
sys a = @vu + of
dt c = nv
int b = sizeof(c)
if ln then b = ln
copy a, @c, b
end macro
Basically i take the address of the UDT with @vu, then i look for the member offset with + of, then i create a variable c of the UDT member data type, in this case DOUBLE, and store the new value nv on it. the lb is, in case the data is a static string, to write no more than the allowed bytes, then i copy the variable c at the address of the UDT member b number of bytes.
It works but, is there a way to add a little more accuracy?