Search found 3 matches
- Mon Aug 20, 2007 9:12 pm
 - Forum: Off Topic
 - Topic: PureBasic.com is worth over $160k
 - Replies: 22
 - Views: 3959
 
- Wed Jul 04, 2007 10:25 am
 - Forum: Coding Questions
 - Topic: Passing a field of a structure pointer to a procedure
 - Replies: 3
 - Views: 749
 
- Wed Jul 04, 2007 9:56 am
 - Forum: Coding Questions
 - Topic: Passing a field of a structure pointer to a procedure
 - Replies: 3
 - Views: 749
 
Passing a field of a structure pointer to a procedure
I have the following code:
 
Structure Foo
A.l
B.f
C.s
EndStructure
Structure Bar
F.Foo
EndStructure
NewList Bars.Bar()
Procedure SetC(*F.Foo,S.s)
*F\C = S
EndProcedure
*Q.Bar = AddElement(Bars())
SetC(*Q\F,"DING") ;; << correct
Debug *Q\F\C
SetC(@*Q\F,"DONG") ;; << also correct
Debug *Q ...
					Structure Foo
A.l
B.f
C.s
EndStructure
Structure Bar
F.Foo
EndStructure
NewList Bars.Bar()
Procedure SetC(*F.Foo,S.s)
*F\C = S
EndProcedure
*Q.Bar = AddElement(Bars())
SetC(*Q\F,"DING") ;; << correct
Debug *Q\F\C
SetC(@*Q\F,"DONG") ;; << also correct
Debug *Q ...