forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


The light are on but nobody's home (vdsinout problem)

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Fri Aug 16, 2002 7:12 pm    Post subject: The light are on but nobody's home (vdsinout problem) Reply with quote

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
View user's profile Send private message Send e-mail
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Fri Aug 16, 2002 9:00 pm    Post subject: Reply with quote

Boy do i hate hidden binarys! Mad
Back to top
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Aug 16, 2002 10:27 pm    Post subject: Reply with quote

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... Wink

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Sun Aug 18, 2002 5:56 pm    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group