Please help - urgent 
Author Message
 Please help - urgent

I am new to Paradox 5.0 windows, and i believe my problem is very simple
to solve, but i have not been able to figure it out.
 I have designed 4 data entry screen (forms (.fsl)) which are all linked
to a single database (.db).  I have designed pushbuttons which allow the
user to jump from screen to screen.  BUT, when the user jumps to a new
screen, it goes to the first record or observation in the database,
rather than remaining on the same record of the previous screen.  
        How can i jump from screen to screen and keep the screens set to the
same record number?  I have a unique identifier for each record which i
use in searches.

Any help is GREATLY appreciated.

Mo EL-Jamil




Sat, 09 Oct 1999 03:00:00 GMT
 Please help - urgent

Try this:

var
        tc      TCursor
        f       form
endvar

tc.attach(field name)
f.open.("form name", WinStayleDefault + WinStyleHidden)
f.field name.resync(tc)
f.bringToTop()



Sat, 09 Oct 1999 03:00:00 GMT
 Please help - urgent

I am new to Paradox 5.0 for Windows, and believe my problem is a simple
problem to solve, but i just cannot figure it out.
I have designed 4 data entry screens (forms (.fsl)) which are all linked
to a single database (.db).  I have designed pushbuttons on the screens
to allow a user to jump from screen to screen, BUT when a user jumps to
a new screen, it goes to the first record or observation of the
database, rather than remaining at the same record of the previous
screen.  Is there a way to have the form automatically go to the
corresponding record of the previous screen after a jump?  I am using a
unique identifier variable in the database to use for searches.

Any help is GREATLY appreciated.

Sincerely, Mo EL-Jamil




Sat, 09 Oct 1999 03:00:00 GMT
 Please help - urgent

On Tue, 22 Apr 1997 15:49:48 -0700, Mo EL-Jamil

Quote:

>I am new to Paradox 5.0 windows, and i believe my problem is very simple
>to solve, but i have not been able to figure it out.
> I have designed 4 data entry screen (forms (.fsl)) which are all linked
>to a single database (.db).  I have designed pushbuttons which allow the
>user to jump from screen to screen.  BUT, when the user jumps to a new
>screen, it goes to the first record or observation in the database,
>rather than remaining on the same record of the previous screen.  
>    How can i jump from screen to screen and keep the screens set to the
>same record number?  I have a unique identifier for each record which i
>use in searches.

>Any help is GREATLY appreciated.

>Mo EL-Jamil



You could use wri{*filter*}vironmentstring and readEnviromentString.  Use
the wri{*filter*}vironmentString will write a string (your unique
identifyer) to the operating system.  Then when the next form opens it
can read the string  then go to the proper record.  You can read more
about this at www.borland.com (or was that www.corel.com).  See the
FAQ section about printing a report with  header data supplied by a
calling form.  It is helpful to read up on the DOS "set" command. I
hope this will get you started.

Steve Daniluk



Sun, 10 Oct 1999 03:00:00 GMT
 Please help - urgent


says...

Quote:

>I am new to Paradox 5.0 windows, and i believe my problem is very simple
>to solve, but i have not been able to figure it out.
> I have designed 4 data entry screen (forms (.fsl)) which are all linked
>to a single database (.db).  I have designed pushbuttons which allow the
>user to jump from screen to screen.  BUT, when the user jumps to a new
>screen, it goes to the first record or observation in the database,
>rather than remaining on the same record of the previous screen.  
>        How can i jump from screen to screen and keep the screens set to the
>same record number?  I have a unique identifier for each record which i
>use in searches.

I use code like this on the calling form button (the button that calls the
other form):

var
   f           Form
   tc          Tcursor
   ui          UIObject
endVar

if not f.attach("Other Form Title") then
f.open("otherformname.fsl")
endif

ui.attach(f)

if not tc.attach(ui) then
tc.open("table.db")
endif

if not tc.locate("ID",id) then    ; id is the record identifier
ui.action(datainsertrecord)
ui.id=id
endif

f.bringtotop()

locate("ID",f.wait())

movetopage(1)
maximize()
bringtotop()

This, simplified version, hope it has no bugs, goes to the other form,
locates the current id in the ID field of the other form, inserts a new
record if not found, then returns to the calling form, locating the id passed
to the wait statement from the other form's formreturn on a return button
placed there.

So the basic idea is to set up your other form from the calling form, set any
locates, indexes, filters or whatever, then bring the other form to top and
wait. This way you can pass values from one form to another by directly
manipulating the other form from the first.

Anyway, hope it generates some ideas you can experiment with.

KR



Tue, 12 Oct 1999 03:00:00 GMT
 
 [ 6 post ] 

 Relevant Pages 

1. Please Help Urgent help needed!!!!

2. ** PLEASE HELP - URGENT **

3. Failed Connection, please help, URGENT!

4. Datetime Conversion Error PLEASE HELP URGENT!!

5. Please Help urgent !!!!!

6. Suspect database (Please Help Urgent)

7. Please Help URGENT

8. Merge Conflict, please help urgent

9. sqlmaint.exe error - please help URGENT

10. Rdo/Dao/ODBC Please help....URGENT

11. jConnect : Unable to execute Queries - Please help(urgent)

12. Excel to Access problem - PLEASE HELP --- URGENT!


 
Powered by phpBB® Forum Software