Connecting to a database

I noticed that there are 3 different types of connect properties for a session. What’s the difference?

Every session has three different connect properties that are used at three different times in the life of an OPO application.

The DesignConnect property is used as the connect string when you access a database through the session object in Power Objects. The DesignConnect property is also the default connect string at all times, so if either the DesignRunConnect property or the RunConnect property are not present when needed, your application will use the value for the DesignConnect property.

The DesignRunConnect property is used as the connect string when you run your OPO application from the Power Objects design environment.

The RunConnect property is used as the connect string when you run your compiled OPO application.

You can set either the DesignRunConnect or the RunConnect properties to a question mark, which will bring up the default OPO login form as soon as your application needs to connect to the database through the session.

The RunConnect property is the only one of these properties you can modify at run-time, which makes sense, since it is the property that is used to connect at run-time. If you plan to set the RunConnect property yourself at run-time, remember to use the “Connect Manually” setting for the ConnectType property of the session

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

iOS app development

The Future of iOS App Development: Trends to Watch

When it launched in 2008, the Apple App Store only had 500 apps available. By the first quarter of 2022, the store had about 2.18 million iOS-exclusive apps. Average monthly app releases for the platform reached 34,000 in the first half of 2022, indicating rapid growth in iOS app development.

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a