public virtual Sybase.PowerBuilder.PBInt of_settops(Sybase.PowerBuilder.Win.PBDataWindow a_buffer, Sybase.PowerBuilder.PBBoolean ab_gainer)
	{
		#line hidden
		Sybase.PowerBuilder.PBArray l_beans = new Sybase.PowerBuilder.PBUnboundedArray(typeof(c__quotedatabean));
		Sybase.PowerBuilder.PBInt l_ctr = Sybase.PowerBuilder.PBInt.DefaultValue;
		Sybase.PowerBuilder.PBInt i = Sybase.PowerBuilder.PBInt.DefaultValue;
		Sybase.PowerBuilder.PBInt row = Sybase.PowerBuilder.PBInt.DefaultValue;
		#line 6
		if ((Sybase.PowerBuilder.PBBoolean)(ab_gainer == new Sybase.PowerBuilder.PBBoolean(true)))
		#line hidden
		{
			#line 7
			l_beans.AssignFrom((Sybase.PowerBuilder.PBArray)i_marketsummary.topgainers);
			#line hidden
		}
		else
		{
			#line 9
			l_beans.AssignFrom((Sybase.PowerBuilder.PBArray)i_marketsummary.toplosers);
			#line hidden
		}
		#line 11
		l_ctr = (Sybase.PowerBuilder.PBInt)(Sybase.PowerBuilder.Win.PBSystemFunctions.UpperBound((Sybase.PowerBuilder.PBAny)(l_beans)));
		#line hidden
		#line 12
		if ((Sybase.PowerBuilder.PBBoolean)((Sybase.PowerBuilder.PBLong)(l_ctr)> (Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(0))))
		#line hidden
		{
			#line 13
			for (i = new Sybase.PowerBuilder.PBInt(1);i <= l_ctr;i = i + 1)
			#line hidden
			{
					#line 14
					row = (Sybase.PowerBuilder.PBInt)(a_buffer.InsertRow((Sybase.PowerBuilder.PBLong)(new Sybase.PowerBuilder.PBInt(0))));
					#line hidden
					#line 15
					a_buffer.SetItem((Sybase.PowerBuilder.PBLong)(row), new Sybase.PowerBuilder.PBString("symbol"), ((c__quotedatabean)l_beans[(Sybase.PowerBuilder.PBLong)(i)]).companyname);
					#line hidden
					#line 16
					a_buffer.SetItem((Sybase.PowerBuilder.PBLong)(row), new Sybase.PowerBuilder.PBString("price"), (Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(((c__quotedatabean)l_beans[(Sybase.PowerBuilder.PBLong)(i)]).price))));
					#line hidden
					#line 17
					a_buffer.SetItem((Sybase.PowerBuilder.PBLong)(row), new Sybase.PowerBuilder.PBString("change"), (Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(((c__quotedatabean)l_beans[(Sybase.PowerBuilder.PBLong)(i)]).change))));
					#line hidden
			}
		}
		#line 20
		return l_ctr;
		#line hidden
	}