Key-value coding
-
Function VbGetPrivateProfileString$(section$, key$, file$) Dim KeyValue$ 'Characters returned as integer in 16-bit, long in 32-bit . Dim Characters KeyValue = String$(128, 0) Characters = GetPrivateProfileStringByKeyName (section, key, "', KeyValue, 127, file) KeyValue = Left$(KeyValue, Characters) VbGetPrivateProfileString = KeyValue End Function Listing 4-4: Code for finding and testing ports, and getting and saving initialization data from an ini file .
20p thachsaudoi 23-12-2009 87 6 Download