Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reset
#13
Code:
Copy      Help
;/
function str&first num

;Clears specified number of str variables.
;No other variables must be declared between these.


;first - first variable
;num - number of variables


;EXAMPLE
;str a b
;str c d
;a="a"
;b="b"
;c="c"
;d="d"
;;...
;ResetStrVariables a 4



int i
str* p=&first
for(i 0 num) p[i].all

To reset variables of other types, create similar functions for each type.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)