| View previous topic :: View next topic |
| Author |
Message |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Fri Aug 16, 2002 7:12 pm Post subject: The light are on but nobody's home (vdsinout problem) |
|
|
My brain is moving with the agility of a 3 legged Rhino on Valium today. I have used this command a kajillion times to retrieve the position of a string in a file. But today, it will only retrieve the position a single character not an entire string. I know the string is in the file.
%%P1 = @IO(FPOSC,C:\TEMP\JOBID.TXT,1,,H)
returns the the position of H
%%P1 = @IO(FPOSC,C:\TEMP\JOBID.TXT,1,,HOSTNAME)
returns 0
Any thoughts?
moke |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Fri Aug 16, 2002 9:00 pm Post subject: |
|
|
Boy do i hate hidden binarys!  |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Aug 16, 2002 10:27 pm Post subject: |
|
|
Is FPOSC case sensitive?
Have you tried enclosing the search string in quotes?
Have you tried adding the end file byte to search?
Have ya closed and restarted VDS...
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Sun Aug 18, 2002 5:56 pm Post subject: |
|
|
Thanks for the reply Mac. Yeah, I did try all those. The problem ended up being that i cut and pasted a string from the file and the string was using invisible characters that were not represented. I switched to FPOSB and used 00 inbetween the binary equivalent of the letters of the string and that worked.
And in case your wondering, yes it did give me a headache.  |
|
| Back to top |
|
 |
|