当前位置: 首页>>代码示例>>C#>>正文


C# Sybase.SetItem方法代码示例

本文整理汇总了C#中Sybase.SetItem方法的典型用法代码示例。如果您正苦于以下问题:C# Sybase.SetItem方法的具体用法?C# Sybase.SetItem怎么用?C# Sybase.SetItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sybase的用法示例。


在下文中一共展示了Sybase.SetItem方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: of_settops

	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
	}
开发者ID:vactorwu,项目名称:catch23-project,代码行数:50,代码来源:n_controller.cs


注:本文中的Sybase.SetItem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。