错误提示:
System.FormatException: Input string was not in a correct format由问题的语句:
temphan = temphan & shuzhi_han(cint(nn(i))) & danwei_han(cint(nn(0)))相关定义:
dim n0(2) As String
dim nn(15) As String
Dim temphan As StringFunction danwei_han(a As Integer) As String
End FunctionFunction shuzhi_han(a As Integer) As String
End Function
很简单的问题    我就是弄不出来

解决方案 »

  1.   

    另外顺便问一下
    format 格式化 数字 的格式  vb的 “#.00”  
    似乎不好用
      

  2.   

    cint错了吧!你是要用他来转换变量的类型吗?
      

  3.   

    dim i as double
    i.ToString("0.00")
      

  4.   

    确实用cint 来转换类型.to格式的  类似
      

  5.   

    up ...          All code!!
      

  6.   

    All code不太可能N多现在我发现问题在于   str 转换为 int的时候有问题可是   b=cint(a)     b=a.toint16()都不行  还是有问题
      

  7.   

    如果使用
    b=a.toint16()
    或者
    b=a.toint32()或出现
    BC30456: 'toint32' is not a member of 'String'.
    的问题
      

  8.   

    b = Convert.ToInt16(a)
    的方法  明天我去看看
    不过请问  Convert=?我的书上没有提到过这东西