To create a format object,
use the CREATE...OBJECT statement.The syntax is:
CREATE dm_format OBJECT
SET attribute = value {,SET attribute = value}
For example, the following statement taken from the"formats.dql" script, creates the format object for the textformat:
create dm_format object
set name = 'text',
set can_index = true,
set mac_creator = 'ttxt',
set mac_type = 'TEXT',
set dos_extension = 'txt',
set description = 'ASCII text'
go
You can use either IDQL or the DQL Query command on the Editmenu in
WorkSpace to enter the CREATE...OBJECT statement.
Through the API
To create a format object through the API, use the followingprocedure:
1. Double-click the IAPI icon in the program group for theDocbase.
2. Enter your username and password.
3. Use the Create method to create the format object:
API>create,c,dm_format
. . .
< returned format id>
4. Use the Set method to set its attributes. For example:
API>set,c,<returned format id>,name
SET>myformat
. . .
OK
API>set,c,< returned format id>,can_index
SET>T
. . .
OK
and so forth
5. Save the new object:
API>save,c,< returned format id>
CREATE dm_format OBJECT
SET attribute = value {,SET attribute = value}
For example, the following statement taken from the"formats.dql" script, creates the format object for the textformat:
create dm_format object
set name = 'text',
set can_index = true,
set mac_creator = 'ttxt',
set mac_type = 'TEXT',
set dos_extension = 'txt',
set description = 'ASCII text'
go
You can use either IDQL or the DQL Query command on the Editmenu in
WorkSpace to enter the CREATE...OBJECT statement.
Through the API
To create a format object through the API, use the followingprocedure:
1. Double-click the IAPI icon in the program group for theDocbase.
2. Enter your username and password.
3. Use the Create method to create the format object:
API>create,c,dm_format
. . .
< returned format id>
4. Use the Set method to set its attributes. For example:
API>set,c,<returned format id>,name
SET>myformat
. . .
OK
API>set,c,< returned format id>,can_index
SET>T
. . .
OK
and so forth
5. Save the new object:
API>save,c,< returned format id>
to add image for the new format need customize the formatlist component
place the image in 16 and 32 dimension
16-import screen list
32-object list screen.
No comments:
Post a Comment