GetTag(tagName As String, id As Integer) As String

 

Check if a keyword with the passed in tagName is already attributed to the address with id.

 

  

Parameters:

 

Name

Type

Description

tagName

String

Name of a tag ("folder") linked to an address

id

Integer

id of a record in database table addresses

 

Returns:

 

Type

Value

Description

String

tagName

The tagName is attributed.

If the passed in tagName is attributed to the address with id, then the same tagName is returned

 

empty

The tagName is not attributed.

If the passed in tagName is not attributed to the address with id, then an empty string is returned

 

Available in:

 

WindowMain

WindowLink

YES

YES

 

 

Hint: You can find more references to XojoScripts which make use of this function by sending the following SQL statement to the database:

Select id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%GetTag%'

 

Example XojoScript:

 

Dim id As Integer = GetCurrentID

Dim tag As String = "Mitgliederbeitrag 2014"

 

If id > 0 Then

 

If GetTag(tag,id) = tag Then

MsgBox(tag + " paid")

Else

MsgBox(tag + " not paid")

End If

End If