ItAm
04-27-2003, 02:49 PM
I need to make vb read commands from a config.ini file as an if statement, this is the current if statement:
If Len(varkey) = 16 Then
now, this determines the length of a line in a text file, and does something as a result. what i need is for it for it to read from a config file as well. so pretty much If the key's length = 16 AND 1Load = True Then <--this kind of idea. so in the config, it would say:
[Main]
1Load=True
2Load=False
and if 2load was true, then 1load would be false, etc. this would just user set. i just need it to kinda have the idea as i mentioned before, If Len(varkey) = 16 And "the Stuff i need help with here :)" Then
anyway help would be awesome
If Len(varkey) = 16 Then
now, this determines the length of a line in a text file, and does something as a result. what i need is for it for it to read from a config file as well. so pretty much If the key's length = 16 AND 1Load = True Then <--this kind of idea. so in the config, it would say:
[Main]
1Load=True
2Load=False
and if 2load was true, then 1load would be false, etc. this would just user set. i just need it to kinda have the idea as i mentioned before, If Len(varkey) = 16 And "the Stuff i need help with here :)" Then
anyway help would be awesome