Çó¾ÈVBºÍC#¶¼Í¨µÄ¸ßÊÖ£¡£¡£¡ÕâÐдúÂëûת³É¹¦£¡£¡
VB´úÂ룺
Loop Until k = 3 Or UBound(datavalue) > 11
»úÆ÷ÈËת¹ýÀ´µÄC#´úÂ룺
while (!(k == 3 | Information.UBound(datavalue) > 11));
ÎÊÌâÊÇ£ºµ÷ÊÔµÄʱºò³öÏÖ¡°¡°UBound¡±·½·¨Ã»ÓвÉÓá°1¸ö²ÎÊýÖØÔØ¡±¡±.Êó±ê·ÅÔÚ¡°¡°UBound¡±ÉϳöÏÖµÄÌáʾÊÇ¡¶int.Information.UBound
(Array Array, int Rank)·µ»Ø¿ÉÓÃÓÚÊý×éµÄÖƶ¨Î¬Êý×î´óϱ꡷
ÇëÎÊUBoundµÄÁíÒ»¸ö²ÎÊýÊÇʲô£¿£¿Õâ¶Î´úÂë¸ÃC#Ôõôд..
Çë¸ßÊÖ°ïæ¸øµã˼· Íò·Ö¸Ð¼¤£¡£¡£¡
datavalueÊǸöÊý×飿
while(k!=3&&datavalue.Length <=11)
okÁË
ÓиöÎÊÌâÒª½â¾ö£¬c££ÀïÊý×é²»¿É±ä³¤£¬
Äã¿ÉÄÜÒª°ÑÊý×é»»³ÉList»òÕßArrayList
ÐèÒªÒýÓà Microsoft.VisualBasic.dll ²¢ÇÒÔÚ´úÂëÖÐ using Microsoft.VisualBasic£¬ÕâÑù¾ÍÕÒµ½ÁË Information Àà¡£
datavalue·ÅÈëArrayListʵÀýÖÐ
Èç¹ûµÚ¶þ¸ö²ÎÊý²»ÄÜȱʡ£¬¾ÍÊÖ¶¯ÌîÉÏ°É¡£
C# code:
public static int UBound(Array Array, [Optional, DefaultParameterValue(1)] int Rank)
{
if (Array == null)
{
throw ExceptionUtils.VbMakeException(new ArgumentNullException(Utils.GetResourceString("Argument_InvalidNullValue1", new string[] { "Array" })), 9);
}
if ((Rank < 1) || (Rank > Array.Rank))
{
throw new RankException(Utils.GetResourceString("Argument_InvalidRank1", new string[] { "Rank" }));
Ïà¹ØÎÊ´ð£º
Óиöwinform³ÌÐò,ʹÓÃc#+mysql,ÐèÒªÔÚÒ»¸ö´°ÌåÉèÖÃmysql×Ô¶¯É¾³ý¹¦ÄÜ,°üÀ¨×Ô¶¯É¾³ý¶àÉÙÌì֮ǰµÄÊý¾ÝÒÔ¼°ÊÇ·ñ¿ªÆô×Ô¶¯É¾³ý¹¦ÄÜ,ÎÒ³ÌÐòÍ˳öºó,»¹Ôõô¿ØÖÆMysql×Ô¼ºÉ¾³ý°¡?ÊDz»ÊÇÒªÓÃmysqlµÄeventÀ´ÊµÏÖ?c#¿ÉÒÔµ÷ÓÃmysq ......
vbÖÐÔõôͨ¹ýxmlÀ´½âÎöÊý¾Ý¿âÖеÄ×Ö¶ÎÖµ¡£
û°ì·¨ÓÃXML½âÎöÊý¾Ý¿âµÄ×Ö¶ÎÖµ£¬³ý·ÇÊý¾Ý¿âÖб£´æµÄÊÇXML¸ñʽµÄ×Ö·û´®Îĵµ¡£
XMLÓÃÀ´Õ¹Ê¾²ã´ÎµÄÊý¾Ý¡£
Êý¾Ý¿âÒ»°ãÊǶþάÊý¾Ý¡£
Êý¾Ý¿âÖб£´æµÄÊÇXML×Ö·û´®¸ñʽ£ ......
¸÷λ´óϺ£º
ÎÒÓÐÒ»¸öVBµ÷ÓÃË®¾§±¨±íµÄϵͳ£¬±¨±íÊÇ×÷Ϊһ¸öDesignǶÔÚVBÀïµÄ£¬½ñÌì·¢ÏÖ´òÓ¡µÚÒ»Õű¨±íÕý³££¬Í¬ÑùµÄÊý¾Ý£¬ÔÚµã´òÓ¡ÔÙµ÷ÓÃÒ»´Î¾Í»á±¨ Memory FullµÄ´íÎ󣬵«ÊÇ ......
ÎÒÖÆ×÷Á˸öÓû§¿Ø¼þ£¬ÐèÒª¶¯Ì¬¼ÓÔص½´°ÌåÉÏ
Set objExt = Controls.Add("¹¤³Ì1.meActiveX", argName)
objExt.Visible = True
³ÌÐòÒ»´ÎÄܼÓÔØN¸ö£¬ ÏÖÔÚÏë¶Ô ......