TIP: Click on subject to list as thread! ANSI
echo: paradox
to: ALL
from: HERVE PIEDVACHE
date: 1994-11-22 01:30:00
subject: Need some Help PDOXWIN 4.5

Hi,
I'd like some help to make this thing :
15 people work on an application from PDOXWin.
They create new elements in a table.
So when they create a new element in this table, I put in the first field 
(Code field) a Number, wich could be for e.g. the Firm Key, the value of this 
number is going up for eatch new one. (This field is Indexed)
But for the moment when two people do exactly in the same time the creation 
of a new element, the Key code could be the same, and at the end when they 
save it, with the index, one of the two element disapeared ...
So I like to find a good ObjetPal code, to say : When you create a new 
element inside the table, you see the last value for key code (no problem for 
this), you create yours + 1, and nobody could do the same thing in the same 
time ...
I've try this with LockRecord ... Open the record put the new key code, 
EndEdit, and Edit just after ... when the key is saved in the table, but 
nothing run ...
Thanks a lot for your help !
Herv‚ - Herve@thebbs.freenix.fr
Herv‚ - Herve@thebbs.freenix.fr
--- JetMail 0.99beta10
---------------
** A related thread FOLLOWS this message.

FIDO MESSAGE AREA==> TOPIC: 119 PARADOX       Ref: BFXB1672 Date: 11/28/94
From: STEVE BOOTH                                           Time: 07:27am
\/To: HERVE PIEDVACHE                                     (Read 12 times)
Subj: R: Need some Help PDOXWIN 4.5

Herve'
    If you've got version 5.0, use the autoincrement field type. Another
way to do it is to have a separate table that contains the last key code
being used and place a full lock on it and get the next key code and then
save it there and release the lock.
 
Hope this helps...
 
Regards, STeve... (Exec-PC Netmail: 1:154/280)
---------------
>>>>>>>>>>>>>>>>>>>>>> LAST Message In Thread <<<<<<<<<<<<<<<<<<<<<<

FIDO MESSAGE AREA==> TOPIC: 119 PARADOX       Ref: BFU00001 Date: 11/23/94
From: LANCE LEONARD                                         Time: 01:25am
\/To: DAVID SHERMAN                                       (Read 13 times)
Subj: Fax printers

David,
 
 DS> Questions:
 DS> 1. Can the default printer be changed from HP printer 
 DS> to Winfax on the fly and then back again? 2. Is do, is 
 DS> the enumPrinters the right command to do what I want to do?
 DS> ...
 DS> 3. If not, which command will do it?
Sounds like you're almost there.  Use the information retreived with 
enumPrinters in conjunction with printerSetCurrent().  There's some sample 
code in the online help for enumPrinters that should help.
 
FWIW, you might want to have the report open in a Design window when you 
change the default printer, so it can react to the font change information 
this will generate.
 
Hope this helps...
 
-- Lance
--- Maximus 2.02
---------------
* Origin: --==> THE BBS for ATARI <==-- Paris, France (FidoNet 2:320/107)
* Origin: Mountain Retreat (1:216/506)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.