DefSng Statement

αž”αžΎβ€‹αž˜αž·αž“β€‹αž”αžΆαž“β€‹αž”αž‰αŸ’αž‡αžΆαž€αŸ‹β€‹αžαž½αž’αž€αŸ’αžŸαžšβ€‹αž”αŸ’αžšαž€αžΆαžŸβ€‹αž”αŸ’αžšαž—αŸαž‘ αž¬β€‹αž–αžΆαž€αŸ’αž™β€‹αž‚αž“αŸ’αž›αžΉαŸ‡ αžŸαŸαž…αž€αŸ’αžŠαžΈαžαŸ’αž›αŸ‚αž„αž€αžΆαžšαžŽαŸ DefSng αž“αžΉαž„β€‹αž€αŸ†αžŽαžαŸ‹β€‹αž”αŸ’αžšαž—αŸαž‘β€‹αž’αžαŸαžšβ€‹αž›αŸ†αž“αžΆαŸ†αžŠαžΎαž˜ αž’αžΆαžŸαŸ’αžšαŸαž™β€‹αžαžΆαž˜β€‹αž‡αž½αžšβ€‹αž’αž€αŸ’αžŸαžšΒ αŸ”

Syntax:

DefType statements diagram


    {DefBool|DefCur|DefDate|DefDbl|DefErr|DefInt|DefLng|DefObj|DefStr|DefSng|DefVar} {char|char-char}[,...]
  

Parameters:

char: Letter prefix that specifies default data type for variables.

char-char: Letter range prefixes that specify default data type for variables.

Example:


    ' Prefix definitions for variable types:
    DefBool b
    DefCur c,l-m
    DefDate t
    DefDbl f
    DefErr e
    DefInt i-k,N
    DefLng x-z, D
    DefObj U, o-R
    DefSng w,a
    DefStr s
    DefVar V,g

  Sub ExampleDefSng
      wSng=Single ' wSng is an implicit single variable
      Print afloat, Typename(Word), VarType(anyNum) ' Result is : 0 single 4
  End Sub

Please support us!