Hi
Please review the following code and explain if this can be done with DarkBasic Pro.
Type Button_Type
Name As String
File As String
FileImage As Integer
ImageOne As Integer
ImageTwo As Integer
X As Integer
Y As Integer
Width As Integer
Height As Integer
EndType
global Red As Button_Type
Red.Name = "Red"
Red.File = "\Images\RedButton.bmp"
Innitialize_Button(Red)
text 10, 50, Red.Name
wait key
Function Innitialize_Button(Button As Button_Type)
text 10,10, Button.Name
Button.Name = "Gavin"
text 10,30, Button.Name
EndFunction Button
Now all the details stored in Red - Button_Type get passed to the function ok, but I can't get the function to return the changes that I make any which way I try.
Can This Be Done.
RealUnReal