The StartMode Property Of The App Object

The StartMode Property Of The App Object

The StartMode setting in the Options dialog of the Tools menu in VB4determines only whether an application with no startup form continues torun after Sub Main has completed. This allows testing of OLE Automationservers. But the StartMode property of the App object allows you to determinein code whether an application shows any visible interface to users. Asingle VB executable file can be both an invisible server and a normalapplication, just like Excel. The Sub Main procedure lets you test thevalue of App.StartMode to decide whether or not to show a form. If theapplication is started directly by a user, the StartMode is vbSModeStandalone.If started by a client application, the StartMode is vbSModeAutomation.

 Sub Main	If App.StartMode = vbSModeStandalone Then		frmMain.Show	Else		'OLE server action...	End If
Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular