[Helma-user] looping through HopObject Members

Julian Tree julian.tree at gmail.com
Tue Aug 8 20:10:26 CEST 2006


how can I do that?

Company/type.properties
----------------
_db          			= filepressdb
_table       			= company
_id          			= company_id
_idgen 					= company_company_id_seq
_name      	 			= company_name
 creator 	 			= creator
modifier 	 			= modifier                         			
contact_name 			= contact_name
company_name 			= company_name
email        			= email
company_type 			= company_type

How can I loop through the members of Company HopObjects

I tried the following
var p = new Company();
var l = p.size();
for (var i=0;i<l;i++){
	// do something
}

doesn't work
for(var i in p){
 //do something, also doesn't work.
}


More information about the Helma-user mailing list