When using the SaveSetting command the parameters are as follows:
Code:
SaveSetting (AppName[String], Section[String], Key[String], Setting[String])
Since they are all strings (same as GetSetting parameters are), then how come something like this will work:
Code:
SaveSetting "Some Program", "Section 1", "5", "1"
or
Code:
Check1.Value = GetSetting("Some Program", "Section 1", "5", "1")
Without a type mismatch error happening.

But if i have a Function with the following in it...
Code:
Public Function SomethingToDo (FirstParameter As String, SecondParameter As String) As String
and pass integers into it, it will error with type mismatch.


How does visual basic get around this? I don't want to use Variants because problems will come when i'm converting back to integers or what ever. So what would i put inside the function parameters to make it "fuzzy"?