"Fossies" - the Fresh Open Source Software Archive

Member "FreeBASIC-1.09.0-win64/examples/manual/udt/access.bas" (1 Jan 2022, 418 Bytes) of package /windows/misc/FreeBASIC-1.09.0-win64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Visual Basic source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 '' examples/manual/udt/access.bas
    2 ''
    3 '' NOTICE: This file is part of the FreeBASIC Compiler package and can't
    4 ''         be included in other distributions without authorization.
    5 ''
    6 '' See Also: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgOpMemberAccess
    7 '' --------
    8 
    9 Type T
   10     As Integer a, b
   11 End Type
   12 
   13 Dim x As T
   14 
   15 '' Access the member 'a' of x.
   16 x.a = 10
   17 
   18 '' Access the member 'b' of x.
   19 With x
   20     .b = 20
   21 End With