Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC VFP DRIVER
Message
De
03/08/1998 13:08:01
 
 
À
03/08/1998 13:06:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00122565
Message ID:
00123580
Vues:
30
>>>I have a default value setup in a VFP table that runs a stored procedure and returns a unique record ID for each new record inserted into the table. This works fine when using VFP but does not work using the VFP ODBC driver. Does anyone know why this doesn't work.
>>>
>>>Thanks,
>>>Dave
>>
>>there are lots of FoxPro things that aren't available to the ODBC driver. What is the code you are using to create your unique id?
>
>This is what does not work...
>
>begin transaction
> update setup set value = value+1 where key_name = "TABLENAME"
> lcret = setup.value
>end transaction
>return alltrim(str(lnret))
>
>This does not work either...
>
>begin transaction
> update setup set value = value+1 where key_name = "TABLENAME"
>end transaction
>lcret = setup.value
>return alltrim(str(lnret))
>
>This does work...
>
>begin transaction
> update setup set value = value+1 where key_name = "TABLENAME"
>end transaction
>lcret = 150
>return alltrim(str(lcret))
>
>The problem is assigning the value of table.field to my varialble, if you have any ideas on how to make this work it would be greatly appreciated.
>Thanks,
>Dave
typo corrected.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform