ds_SetFieldProperties


ds_SetFieldProperties (tableNum; fieldNum; newName; newType; newStringSize; newList) <- errorCode
Parameter Type Description
-> tableNum Integer Table number
-> fieldNum Integer Field number
-> newName String New field name. "" = don't change
-> newType Integer New type
-> newStringSize Integer Length (2-80) for String fields or -1 = don't change
-> NewList String Associated list name. "" = don't change
<- errorCode Long Integer Error Code (0 = no error)


Change a field properties.

A subtable field cannot be changed, and it is not allowed to change a "regular" field to a subtable. If newName is not "" and is already used by an other field of the table, the routines returns an error code and does nothing.

Pass in newType a value of the theme "Constants: Field and Variable Types":

0 = Is Alpha Field
1 = Is Real
2 = Is Text
3 = Is Picture
4 = Is Date
6 = Is Boolean
8 = Is Integer
9 = Is LongInt
11 = Is Time
30 = Is BLOB