Left hand on right hand side of Variant or Object?! 
Author Message
 Left hand on right hand side of Variant or Object?!

If Check1.Value = 1 Then
GetSetting("TerraScript", "Options", "InitAnim") = "1"
Else
GetSetting("TerraScript", "Options", "InitAnim") = "0"
End If

I placed that in Command1 on my frmOptions. When I pressed the button, I
just got this error: "Fuction call on left-hand side of assignment must
return Variant or Object"
                                                    [     OK     ]

What did I do wrong?
Or no, just tell me the correct code.
(I don't understand the different between Variant and Object anyway)

*I hope for a quick answer*
--



Sun, 16 Sep 2001 03:00:00 GMT  
 Left hand on right hand side of Variant or Object?!
Oops..
I just found out. I could just use:
    ' Get:
    SaveSetting "TerraScript", "Options", "InitAnim", InitAnim.Value

    ' Read:
    InitAnim.Value=GetSetting("TerraScript", "Options", "InitAnim")

Sorry for taking up some of your diskspace, Bill.
And sorry for letting all you ppls download my newbie question (c:

--



Sun, 16 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Function Call on left-hand side... Etc

2. Left and right-hand mouse-buttons

3. Putting Text on the Right Hand Side of the Menu Bar

4. Creating ICON in RIGHT HAND SIDE OF Task Window

5. Creating ICON in RIGHT HAND SIDE OF Task Window

6. Creating ICON in RIGHT HAND SIDE OF Task Window

7. Creating ICON in RIGHT HAND SIDE OF Task Window

8. Hand tool, Hand Panning

9. left handed scroll bars

10. left-hand margin in RichTextBox....

11. DirectX and left-hand Cartesian coordinate geometry

12. changing Mouse to left handed an back

 

 
Powered by phpBB® Forum Software