本文整理汇总了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
}