TagInfo() generate/enh74c.jpg


Returns information about the contents of the tag buffer and resets or sets its contents.

Syntax

TagInfo(<nOp>) --> xResult

Arguments

<nOp> --> The operation to perform on the contents of the tag buffer.

Returns

If nOp passes 1, then the contents of the tag buffer is returned as an array of product ID's in the first element of the array. For example:

{ "0035001", ... }

generate/notepad1.gifPlease note that the contents of each subarray element is reserved for future use.

Description

This function returns information about the contents of the tag buffer. The tag buffer holds those stock items that have been selected (ticked) by the user when finding and managing stock records.

generate/notepad1.gifStock items are typically tagged when users click on the small clipboard symbol at the bottom left hand corner of the stock record screen, or double-click on a stock item when they are looking at a List View of stock records.

nOp

Description

0

Empties the tag buffer.

1

Returns the contents of the tag buffer as an array of product code names.

2

Adds the currently selected stock item to the tag buffer.

3

Returns the size of the tag buffer (number of items in it)

Example

* Return first Stock ID of tag list

Declare aTags Type Array

aTags := TagInfo(1)

If Len(aTags) > 0

   Echo(aTags[1,1])

Endif

____________________________

Related Topics:

Business Function List



CAPITAL VISUAL BUILDER