SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎

TARGET Object


Platform Objects



TARGET is an auxiliary object that facilitates common scripting tasks. The script editor shows Target's methods when you type a "."(dot) after the object's name.  The methods implemented by the TARGET object facilitate common tasks like parsing text data into elements or manipulating arrays as well as the program's more powerful features such as executing external code and pulling data from the web.



NOTE:  "trg" also works as a shortcut for the target object 

TARGET methods are obtained by typing "target." in the script editor then selecting from the list of methods.  Functions and properties in the TARGET Object are similar to TextConverter, TARGET Reports, as well as any other software developed on the TARGET platform.

Here is a syntax example.  The syntax for Arrayfind in the TARGET Object is:

target.ArrayFind(ary, value, pos)

The groups of target methods are listed below in the order that they appear on the fly menu.  In addition to these groups, there are may methods, like the example above, that come directly after the target object.  Here are the groups:

 
1. target.array 

Add
Allocate
Chop
Clone
Empty
Find
First
Get
GetArray
Insert
Join
Last
Remove
Set
SetArray
Sort
UBound

2. target.file

Copy
Delete
Exists
GetDate
GetExtension
GetExtensionByMIME
GetMIME
GetName
GetSize
GetText
IsLocked
IsTextPDF
Move
Read
Rename
Replace
SetDate
Unzip
Write
Zip


 
3. target.mail

Connect
Delete
Disconnect
GetMessage
GetMessages
Move
ReplacePath
Send
SetAttachments
SetCC
SetFont
SetHeaders
SetPickupFolder
SetSMTP

4. 
target.map

CloneEmpty
Get
GetRadio
IsEmpty
IsFull
Set
SetAll
SetRadio

5. target.progress

Increment
SetLimit

6. target.strlib

Chop
Delete
Extract
GetAddress
GetCityStateZip
GetEmail
GetName
GetPhone
GetSSN
GetWord
GetWords
InStr
Mid
Replace
SetCaseSensitive
Split
Trim


 
7. target.weblink

CopyTo
Download
HTTPRequest
NSLookup
Respond

8. Other

ArrayFind
ArrayInsert
CloseAllDBConnections
CreateObject
Execute
FormatDate
FormatNumeric
GetDateRange
GetItem
GetMessage
GetProcessData
GetProcesses
GetProcessID
GetProcessTime
GetStartPath
GetService
GetUniqueString
IIF
InitDate
InitNumeric
IsEmpty
IsNumeric
IsRunning
IsTrue
KillProcess
Max
Min
Message
RunOnce
Replace
SaveProject
Sleep
Sort
TimerGet
TimerSet
SplitString
Update
Validate


Back (TextConverter Object) | Next (Value Object)

Back (Objects and Methods)