In the form processor, I'm playing around with the idea of automatically saving fields into local variables.

I was hoping something like the following would work, but it doesn't seem to.

method "SaveFormToLocals"
   c_longint($it)
   c_pointer($var_p)

   $it := form variables
   while(more items($it))
      $field := get item key($it)
      $var_p := Get pointer($field)
      $var_p->:=get item value($it)
      next item($it)
   end while    
end method

Is there something I'm doing wrong or perhaps there is an easier way to do what I'd like.

Thanks, Darin.

_______________________________________________
Active4D-dev mailing list
Active4D-dev@aparajitaworld.com
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to