Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC VFP DRIVER
Message
From
03/08/1998 13:08:01
 
 
To
03/08/1998 13:06:22
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00122565
Message ID:
00123580
Views:
31
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform