Restored from previous forum. Originally posted by JohnDeHope3.
Can a structure be used as the data type for a procedure parameter? Is this something other people would like? Is there a reason why this is not good?
Structure As Procedure Parameter
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by BigSnake.
Code: Select all
structure a
a.l
b.s
c.b
endstructure
procedure ChangeA(*A.a)
*A.a = 15
endprocedure
Global B.a
ChangeA(B)
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm