Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Userid and Password to Connection
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00025385
Message ID:
00025387
Views:
28
>Using the connection designer, I can set the preference for displaying the ODBC login prompts to Always, Never, and When login information is not specified. If I select always, the login prompt appears everytime the user selects a different form (and many times for forms with more than one table).
>
>I would like to present the user with a form where they can enter their userid and password once, and then my application can use this information whenever it needs to connect.
>
>Any ideas on how this can be done?
>
>Jeff

You can create some app object properties .connuserid, .connpassword, reset their values in your custom form, and use DBSETPROP() to set connection properties before each SQLConnect call.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform