That's just one area where NASMX will help you.
A quick example ( I just now wrote it, thus untested )
proc myfunc
locals
local varA, dword ; reserve one dword - 4 bytes
local varB, byte ; reserve one byte
local varC, byte, 255 ; reserve an array of bytes
endlocals
;
; your code here
;
endproc
hope that helps.