I'm trying to write a function to query an "random" table that is passed
to an method as a string;

method "sample"($tablename;$fieldname)
   ALL RECORDS( ...table... )
   while(not(end selection( ...table... )))
       writebr("Hi " + ...table...field...)
       NEXT RECORD( ...table... )
   end while
end method

Add this at the top of the method:

$tablePtr := get field pointer($tablename)

Then all of the table-based commands use $tablePtr->.

Regards,

   Aparajita
   Victory-Heart Productions
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to