從vb6到vb.net(一).pptVIP

  • 27
  • 0
  • 约6.19千字
  • 约 46页
  • 2016-06-03 发布于天津
  • 举报
從vb6到vb.net(一)

昇級Visual Basic 技術到Visual Basic. NET 講師簡介 議程大綱 VB6 、VB.NET語言的差異 VB.NET新功能介紹及範例 昇級現有的 VB 6 專案程式 VB6 v.s VB.NET 資料型態 Common Type System 1/2 Common Type System 2/2 VB.NET 新的資料型態 資料型態轉換 VB6的資料型態轉換方式 CInt()、 CStr()、… 使用新的Ctype() 轉換方式 語法:Ctype(expression, type_name) 物件的資料型態轉換方式 s=i.toString i=Integer.Parse(s) 型態轉換--範例 VB 6 Dim i as integer,s as string i=10 s=Cstr(i) VB.NET Dim i as integer, s as string i=10 s=Cstr(i) ‘VB6延用的使用方式 s=Ctype(i,string) ‘CType的使用方式 s=i.ToString ‘物件的使用方式 i=Integer.Parse(s) ‘字串轉數字 使用變數 宣告及初始化變數 宣告陣列 陣列的基底為 0 不能指定 lower bound To upper bound方式 Redim陣列 陣列使用--範

文档评论(0)

1亿VIP精品文档

相关文档