請問 Type 的變數能像VB6用中文命名嗎?

Discussion in 'Chinese Forum' started by siuting, Oct 26, 2018.

  1. siuting

    siuting New Member

    例子: Type Person(LastName As String, FirstName As String. Address As String, City As String)

    請問 Type 的變數能像VB6用中文命名嗎?例如 LastName 改為姓氏?

    Type Person(姓氏 As String, 名字 As String. 地址 As String, 所在城市 As String)
     
  2. aeric

    aeric Active Member Licensed User

    可以, 但应该这样写。
    Code:
    Type Person(姓氏 As String, 名字 As String, 地址 As String, 所在城市 As String)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice