pre-canned routines

PBSnake
03-05-2002, 07:17 PM
Hello all. I am looking to create som pre-canned routines. What I am thinking is a bunch of frames that has each pre-canned information on them. I would select them with a combo box. When selected the frame would come up and allow the user to enter in the data in. After data is entered it would place it in a text box or just on the form and also save it to a file. This I pretty much think I have a grasp on.

Where my trouble comes in is when I what to open the file. I want it to display on the form and allow be to cursor through the differant lines. And the frame that contains that pre-canned unit would display all the info and allow the user to change that data.

Each unit or pr-canned routine could have a differant amount of fields to fill in and the user could continue adding these to the file untill they inserted a end unit. Sort of like creating a small program. Because then the could run it and it would step through this file pulling out the dat and doing what it was told.

I am new to this VB thing and I hope I explained this ok. Bellow is what the units may look like and each of these would be a pre-canned unit that would be used.


UNO MOVE1 MOVE2 MOVE3
1 12.6 34.56 3.67

UNO STR1 OUT2 OUT3 OUT4
2 32 1 0 1

UNO IN2 MOVE2 TYPE OUT4
3 1 23.45 4 0

SPACE MOVE5 TYPE
45 34.2 3

UNO END
4


Each of the UNO's above would be a pre-canned unit The number under it is just a counter that increments ever time the user enters a new unit. All other numbers are the data that is required for that unit.

Sorry to be long winded I just want to explain as best I could. In hopes to get help quicker.

Thanks in advance
PBSnake

ChiefRedBull
03-06-2002, 02:19 AM
Might be a silly question... but what is a 'pre-canned unit'?

Sounds like you want to extract records from a random file?

PBSnake
03-09-2002, 11:11 AM
I'm kinda of thinking of that. What I mean by a pre canned is a name of a unit could be selected then it would already know the number of fields and their names. You are correct I can pull the data from a random file. But when I display them on the screen how do I cursor through the fields only and not the names or descriptions.

Each pre-canned unit would have names to each of the fields that the user would us to tell what the need to enter.

PBSnake

Thinker
03-09-2002, 11:17 AM
I don't know if this has anything to do with what you are asking,
but I did this code example where a database table is selected,
and based on what fields are in it, it generates that number of
labels and textboxes and puts them on the form at run time. If
that is of interest, look at this link. (http://www.visualbasicforum.com/showthread.php?s=&threadid=20002)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum