Re: task function request

new topic     » goto parent     » topic index » view thread      » older message » newer message

Would this do what you need?

constant 
tID = 1, 
tData = 2 
 
sequence taskvars = {{},{}} 
 
 
export function task_get_var(atom taskid) 
    atom idx 
    idx = find(taskid, taskvars[tID]) 
     
    if idx > 0 then 
        return taskvars[tData][idx] 
    else 
        return 0 
    end if    
end function 
 
export procedure task_set_var(atom taskid, object taskvar) 
    atom idx 
    idx = find(taskid, taskvars[tID]) 
     
    if idx > 0 then 
        taskvars[tData][idx] = taskvar 
    end if 
end procedure 
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu