<< 向前        下一页 >>

ID : 9095

Variant

Function

This means 变体(Variant)型 data.

Description

Use this with "Dim" when declare 变体(Variant)型 local variable.

Related Terms

Integer, Single, Double, Position, Trans, Joint, Variable Type Relation Key Word

Attention

-

Example

Pro1.pcs
Sub Main
  Dim n as Integer
  Dim vColor as Variant
  vColor = Array( "RED", &H0000FF, "GREEN", &H00FF00, "BLUE", &HFF0000 )

  For n=0 To Ubound(vColor)
     PrintDbg vColor(n*2),  Hex(vColor(n*2+1))
  Next

End Sub

ID : 9095

<< 向前        下一页 >>