Click or drag to resize

INumbersRemove Method

Remove - removes a counter from a field Removes a counter from a field, if you later decide to add a counter to this field again the counter will start from the beginning. The example with remove the added counter from one of the fields created in the SODictionarySDK examples.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void Remove(
	string TableAndFieldName
)

Parameters

TableAndFieldName
Type: SystemString
The table and field name of the field you want to remove from the number allocation system.
Examples

Remove

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Set soApp = CreateObject("SuperOffice.Application.1")
Dim numb
Set numb = soApp.Database.Numbers

MsgBox "Is the counter for Contact Number 2 active? " & numb.IsActive("contact.number2")
numb.Add ("My_own_table.My_Text")
MsgBox "Current counter for My_Own_Table.My_Text value = " & numb.Value("My_own_table.My_Text")
numb.GetNext ("My_own_table.My_Text")
MsgBox "Current counter for My_Own_Table.My_Text value = " & numb.Value("My_own_table.My_Text")
numb.GetNext ("My_own_table.My_Text")
MsgBox "Current counter for My_Own_Table.My_Text value = " & numb.Value("My_own_table.My_Text")
numb.GetNext ("My_own_table.My_Text")
MsgBox "Current counter for My_Own_Table.My_Text value = " & numb.Value("My_own_table.My_Text")
numb.GetNext ("My_own_table.My_Text")
MsgBox "Current counter for My_Own_Table.My_Text value = " & numb.Value("My_own_table.My_Text")

MsgBox "We will now remove the counter for My_Own_Table.My_Text"
numb.Remove "My_own_table.My_Text"

MsgBox "Now we add the counter again"
numb.Add ("My_own_table.My_Text")
MsgBox "Current counter for My_Own_Table.My_Text after delete. Value = " & numb.Value("My_own_table.My_Text")
numb.GetNext ("My_own_table.My_Text")
MsgBox "Current counter for My_Own_Table.My_Text value = " & numb.Value("My_own_table.My_Text")

See Also