Search found 7 matches

by NuKMaN
Sat May 03, 2008 6:28 pm
Forum: QBasic / QuickBasic related
Topic: SCREEN Navigation??
Replies: 13
Views: 5852

Thanks Pebe.....

and yes this works great
by NuKMaN
Mon Apr 14, 2008 8:09 pm
Forum: QBasic / QuickBasic related
Topic: SCREEN Navigation??
Replies: 13
Views: 5852

Sure, I'll post that section of the code:

'LOAD PLANTS FROM FILE TO SCREEN
FH = FREEFILE
CL% = 3
CN% = 1
CT% = 9

OPEN "PLANTS.DAT" FOR INPUT AS #FH
DO WHILE NOT EOF(FH)
LINE INPUT #FH, INP$
Y = INSTR(INP$, ":")
IF Y = 0 THEN STOP
L = Y - 1
R = Y + 1

IF CN% < 11 THEN

LOCATE CT%, 3 ...
by NuKMaN
Mon Apr 14, 2008 6:31 pm
Forum: QBasic / QuickBasic related
Topic: SCREEN Navigation??
Replies: 13
Views: 5852

Not really, I am told my question is not direct enough. So let me start over. Once I get information onto the screen for a user, how do I add navigation to the screen. When I say navigation: The user is able to use the arrow keys to move a highlighted area to the line they want.

Once this is ...
by NuKMaN
Wed Apr 09, 2008 9:51 pm
Forum: QBasic / QuickBasic related
Topic: SCREEN Navigation??
Replies: 13
Views: 5852

no
the file name is plants.dat
each line in the file are just like below:

100:benhill
300:athens
400:lithonia


the 3 lines above is exactly what is in the file. I am able to pull the information from it and sort on the screen, but I'm not sure where to go from there.
by NuKMaN
Wed Apr 09, 2008 5:38 pm
Forum: QBasic / QuickBasic related
Topic: SCREEN Navigation??
Replies: 13
Views: 5852

it is a dat file that has that content in it. That is a example of what each line in the file looks like
by NuKMaN
Mon Apr 07, 2008 6:18 pm
Forum: QBasic / QuickBasic related
Topic: SCREEN Navigation??
Replies: 13
Views: 5852

SCREEN Navigation??

Need some help on how to create a on screen navigation. I am pulling information from a flat file in the following format:
100:job1
200:job3
400:job6

I know how to capture keys using the inkey command, but what I am wanting to do is have the first line (from flat file) highlighted and allow the ...
by NuKMaN
Thu Mar 06, 2008 2:24 pm
Forum: QBasic / QuickBasic related
Topic: open/read/write to a flat file
Replies: 3
Views: 3215

open/read/write to a flat file

Sorry to bother everyone, I'm new to QB and need a little help. I have gotten to a point where I need to store data and I figure the easiest way to do so would be to write/read to a flat file. What I could find only worked partly. I am able to OPEN the file or create it if it doesn't exist by doing ...