Mobile App Development Software
Alpha TransForm
|
Alpha Anywhere - Build Apps for Free
Alpha Software
Documentation
  • Reference
  • API
  • Objects
  • Data Types
  • Array
  • setnull Method
Parent | Child | Previous | Next
  • age Method
  • append Method
  • append_arrays Method
  • append_arrays_filtered Method
  • class Method
  • clear Method
  • copy_from Method
  • delete Method
  • dimension Method
  • dump Method
  • dump_csv Method
  • dump_json Method
  • dump_properties Method
  • filter Method
  • find Method
  • findi Method
  • first_empty Method
  • for_each Method
  • get_dynamic Method
  • get_fields Method
  • get_recycle Method
  • initialize Method
  • initialize_from_csv Method
  • initialize_from_table Method
  • initialize_properties Method
  • insert Method
  • isnull Method
  • itemtype Method
  • last_appended Method
  • lower Method
  • matching Method
  • move Method
  • property_order Method
  • push Method
  • reorder Method
  • resize Method
  • set_dynamic Method
  • set_recycle Method
  • setnull Method
  • size Method
  • sort Method
  • touch Method
  • typename Method
  • upper Method
 
Xbasic

Array setnull Method

Syntax

<array>.setnull()

Description

Sets data to NULL.

Discussion

The <array>.setnull() method sets an array to null, deleting all properties and values from the array.

Example

dim vals[10] as N
for i = 1 to 10
  vals[i] = i*2
next

? vals
= [1] = 2
[2] = 4
[3] = 6
[4] = 8
[5] = 10
[6] = 12
[7] = 14
[8] = 16
[9] = 18
[10] = 20

vals.setnull()

? vals
= <Has no sub-properties>

? vals.size()
= 0

See Also

  • Array isnull Method
Report an issue with this page
Mobile App Development Software

Alpha TransForm - Quickly Build Enterprise Mobile Forms
- Try it for Free

Alpha Anywhere - Low Code Platform for Mobile Developers
- Build Apps for Free
Alpha Software Corporation

781.229.4500
© Copyright 2000-2020 Alpha Software Corporation. All Rights Reserved

Privacy Policy