Got a bit of a poser here. I'm trying to rewrite PG's validation by email module, and I'm attempting to dtermine if the email address that the user entered is unique . I figure that this will require parsing the user DB and doing a substring match on all the entered email addresses (sort of like the finduser function, except for netmail addresses). Can anybody point me in t right direction of something that might approximate this behavoir? I've tri looking for "example" code, but I haven't found anything that smacks of what want to do.
Easy, just open the user.dat manually and compare the email address to every record. You just have to write the code to keep track of the file position and record size.
Not the easiest thing to do with BAJA, but I've done it several times in various mods. Be careful to open the user.dat read-only.
I'm not going to give you the code as you are trying to copy my mod :-)
PG
Easy, just open the user.dat manually and compare the email address to ev record. You just have to write the code to keep track of the file positi and record size.
Not the easiest thing to do with BAJA, but I've done it several times in various mods. Be careful to open the user.dat read-only.
I'm not going to give you the code as you are trying to copy my mod :-)
I'm just desperate for something that works in win2k. :) I've got something that works in place, but I'm having trouble making it so that they are force to enter a valid email. If its any consolation, I tried everything I could get your mod working before I set off on my own :(
Parsing through the user.dat file doesnt really seem like my cup of tea, b I'll see what I can do :)
Actually, got another quick question. Is it possible to call exec (or anyth equivalent to it) using a strvar instead of having to specify the string rig there? If so, it would probably be pretty easy to fix the wacked command li parameters under win2k when you make an exec call...
Actually, got another quick question. Is it possible to call exec (or anyth equivalent to it) using a strvar instead of having to specify the string rig there? If so, it would probably be pretty easy to fix the wacked command li parameters under win2k when you make an exec call...
RE: Unique e-mail addy?
BY: Uberhund to Uberhund on Mon May 28 2001 09:33 pm
Actually, got another quick question. Is it possible to call exec (or an equivalent to it) using a strvar instead of having to specify the string there? If so, it would probably be pretty easy to fix the wacked command parameters under win2k when you make an exec call...
I don't think that is the problem with telval on Win2K.
RE: Unique e-mail addy?
BY: Uberhund to Uberhund on Mon May 28 2001 09:33 pm
Actually, got another quick question. Is it possible to call exec (or an equivalent to it) using a strvar instead of having to specify the string there? If so, it would probably be pretty easy to fix the wacked command parameters under win2k when you make an exec call...
I don't think that is the problem with telval on Win2K.
Rob
Actually, got another quick question. Is it possible to call exec (or equivalent to it) using a strvar instead of having to specify the stri there? If so, it would probably be pretty easy to fix the wacked comm parameters under win2k when you make an exec call...
I don't think that is the problem with telval on Win2K.
Yeah, it appears to be some weirdness with cmd.exe. It manifests itself, however, whenever a command line specifier (%g, etc) is used. Once one of those is included in the string that exec receives, everything after the fir argument is transmuted into a single asterisk. I've tested it fairly extensively. I'm not saying that its Sync'd or BAJA's fault, rather, I'm ju looking for some sort of work-around.
Perhaps PistolGrip will be kind enough to fill us in on his work-around. I suspect that if the program you're executing is in the native program (OS/2) list in SCFG, the redirection still will work.
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 65:19:23 |
Calls: | 335 |
Messages: | 113,199 |