This place is a bit dead
-Stu
Search found 8 matches
- Wed Oct 01, 2003 10:41 pm
- Forum: QBasic / QuickBasic related
- Topic: QBTree Data Engine
- Replies: 6
- Views: 2199
- Wed Oct 01, 2003 10:40 pm
- Forum: QBasic / QuickBasic related
- Topic: Severe Error: Expression too complex!
- Replies: 2
- Views: 789
Re: Severe Error: Expression too complex!
I think this is what I get also on my SearchFile% function.
It's stopping the compiler build an exe, but it runs fine.
-Stu
It's stopping the compiler build an exe, but it runs fine.
-Stu
- Tue Sep 30, 2003 1:55 am
- Forum: QBasic / QuickBasic related
- Topic: Searching a file for a string
- Replies: 4
- Views: 1189
Re: Searching a file for a string
Help!!
-Stu :)
-Stu :)
- Sun Sep 28, 2003 9:50 pm
- Forum: QBasic / QuickBasic related
- Topic: Searching a file for a string
- Replies: 4
- Views: 1189
Re: Searching a file for a string
I had to modify the function to get it to work. FUNCTION SearchFile% (LogFile$, Search$) FOUND% = 0 OPEN LogFile$ FOR INPUT AS #1 DO UNTIL EOF(1) LINE INPUT #1, LineText$ IF INSTR(LineText$, Search$) THEN FOUND% = 1 EXIT DO END IF LOOP CLOSE #1 SearchFile% = FOUND% END FUNCTION I am having...
- Wed Sep 24, 2003 10:19 pm
- Forum: QBasic / QuickBasic related
- Topic: Searching a file for a string
- Replies: 4
- Views: 1189
Re: Searching a file for a string
Thanks very much!
I'll be back (for more help likely)
-Stu
I'll be back (for more help likely)
-Stu
- Tue Sep 23, 2003 1:00 am
- Forum: QBasic / QuickBasic related
- Topic: Searching a file for a string
- Replies: 4
- Views: 1189
Searching a file for a string
I'm trying to write a function to search a file for a string, and once found, return with "yes" (for found). Here's what I think is a finished function, but was wondering if you could check it through because I'm a QB newb. FUNCTION SearchFile (FileName$, Name$) NameLen = LEN(Name$) SearchNum = 1 Fo...
- Mon Sep 22, 2003 2:58 am
- Forum: QBasic / QuickBasic related
- Topic: QBasic WRITE
- Replies: 3
- Views: 935
Re: QBasic WRITE
Thanks!
So PRINT will become write while it sits in OPEN and CLOSE?
Edit: Print #1 works perfectly.
I've been reading a book on QB, which didn't refer to using the PRINT statement for file writes.
-Stu
So PRINT will become write while it sits in OPEN and CLOSE?
Edit: Print #1 works perfectly.
I've been reading a book on QB, which didn't refer to using the PRINT statement for file writes.
-Stu
- Sun Sep 21, 2003 9:44 pm
- Forum: QBasic / QuickBasic related
- Topic: QBasic WRITE
- Replies: 3
- Views: 935
QBasic WRITE
I am trying to write multi-character strings to a file, in this case writing an html doc containing the output of my program. Now, the problem is, html contains " in them, and also < > The compiler takes these as open quotes for new parts and operators, but I want them to be just part of the same st...