Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Field lengths
#1
Grrrrrrrrrr!! Ok I'm working in QB 4.5 and I'm currently working on a programme that starts off with a text file (tab delim):

REYNOLDS JOSH HIS GEOG ENG MUS GST 03/04/85
SMITH DIANA FRE GER JAP
JOHNSON SUKWINDER MAT PHY 23/06/85

Basically I'm trying to get them so that I have 8 little columns with all the correct information lined up underneath them.
Also, the field lengths have to be certain lengths, such as 15 for all the names, 10 for all the date of births and 5 for all the subjects.

i have used something like:
spacelocation% = instr(phone$, " ")
name$ = mid$(phone$, 1, spacelocation% - 1)

so far that displays the first field "Reynolds". then i was hoping to be able to put something like "locate, 16" (to get it onto the 16th marker) and then i wanted to ask it to print the second record, having read it from the text file.
Is this possible and if so can someone show me how to do it???

(sorry, i just looked at my own message and it seems complicated....!!)
thankyou very much,
XxSxX
Reply
#2
*blink* what? could you post some code snippet or something?

edit: and what are you trying to accomplish? The name then the sublects? what about that date?

edit 2: would PRINT USING help?
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#3
I've answered this at QBNZ Smile

RANDOM ACCESS.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)