KoW
05-07-2003, 04:57 PM
I'm quite a bit of a n00b and I need help with some stuff for class.
I've been working on a sig generator (it's pointless and stupid, but it does what I need for the final) but I'm having a few issues.
1. I need to save each sig as a new file. As it is, I'm trying to save each sig as a file with the format "server_servername.txt" so people can go in, grab the sig for, say, International RO Chaos Server from the filr iro_chaos.txt and slap it on to a website. Here's what I have:
Open ("C:\RO Sig Machine\" & strServer & "_" & strVersion & ".dat") For Input As #1
So yeah, that doesn't work. Is there any way to use variables in a filename?
2. How in God's name do I revert a combo box to it's default setting? I'm trying to get a combo box to flip back to the first item in the list, but I just can't figure it out.
3. How can I check if a file exists already? It's the same situation as 1; I'd like to have it append if the file doesn't exist and overwrite with input if it does. I know how to set it up in a For loop, but how can I check if the file exists yet?
I know it's a lot, but if anyone could help with anything, I'd appreciate it.
Thanks in advance.
Edit: As if life wasn't complicated enough... Is there an easy way to compare three variables (technically an array) and decide which was the greatest? I just don't want to use a billion for loops.
I've been working on a sig generator (it's pointless and stupid, but it does what I need for the final) but I'm having a few issues.
1. I need to save each sig as a new file. As it is, I'm trying to save each sig as a file with the format "server_servername.txt" so people can go in, grab the sig for, say, International RO Chaos Server from the filr iro_chaos.txt and slap it on to a website. Here's what I have:
Open ("C:\RO Sig Machine\" & strServer & "_" & strVersion & ".dat") For Input As #1
So yeah, that doesn't work. Is there any way to use variables in a filename?
2. How in God's name do I revert a combo box to it's default setting? I'm trying to get a combo box to flip back to the first item in the list, but I just can't figure it out.
3. How can I check if a file exists already? It's the same situation as 1; I'd like to have it append if the file doesn't exist and overwrite with input if it does. I know how to set it up in a For loop, but how can I check if the file exists yet?
I know it's a lot, but if anyone could help with anything, I'd appreciate it.
Thanks in advance.
Edit: As if life wasn't complicated enough... Is there an easy way to compare three variables (technically an array) and decide which was the greatest? I just don't want to use a billion for loops.