Salesforce

TVal (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

TVal (Magic xpa 2.x)

Converts a time value stored as an Alpha character string to a numeric value, according to a picture.

Syntax:

TVal(string,picture)

Parameters:

string: An Alpha string that can be interpreted as a time value (e.g., '02:30:00 PM').

picture: The format for string in which the time is stored. This parameter helps Magic xpa read and interpret the character alpha string. For a full description, see pictures.

Returns:

Time value

Example:

Tval('02:30:00 PM','HH:MM:SS PM') returns 14:30:00

Note:

A blank picture interprets the string as 'HH:MM:SS'.

See also:

TStr, DVal, DStr

The Online and Rich Client Samples projects (program CV06 and RCV06)

Reference
Attachment 
Attachment