Previous Topic

Book Contents

Book Index

Next Topic

Information About the Running Platform

When accessing an application from outside, frequently, there is a need to get some basic information related to the target platform information, for example, the application time, which might differ from the time on the client side computer. For this purpose, Valuemation provides the FunctionProvider object.

Application.getFunctionProvider()

Returns a new object you can use to call common functions.

These include:

getMaxDate(), getMaxTimeStamp(), getCurrentDate(), getCurrentTime(), getCurrentTimestamp(), getCurrentUserID(), normalizeDate (aDate)

Example - Using Function Provider

We assume that you have run Valuemation and logged in correctly before starting this code. oVM variable now holds Application object. See Login Syntax for the section of the opening code.

'display Valuemation server time

sTmp = oVM.getFunctionProvider.getCurrentTime

MsgBox sTmp

See Also

Setting Up Valuemation Environment

Writing Messages to the Log

Getting Valuemation Version

Memory Services

Main Parameters

User_Admin Mode

Selecting Language

Localizing Messages