05.06.2013 Views

Using ChemFinder - CambridgeSoft

Using ChemFinder - CambridgeSoft

Using ChemFinder - CambridgeSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Administrator<br />

SYSMETRIC retrieves the specified system metric<br />

into a variable.<br />

The table below shows examples of General<br />

Commands:<br />

Command Action<br />

MSG ″Click OK<br />

to continue″<br />

FONT Times 12 1<br />

255 0 0<br />

GET V1,4,5<br />

File Commands<br />

display message, wait for<br />

click<br />

change font to red 12point<br />

Times bold<br />

place the value of item<br />

number 5 in section 4 into<br />

the variable V1<br />

SOUND beep.wav play the sound in the files<br />

beep.wav<br />

READMOL filename<br />

WRITEMOL filename<br />

WRITETEXT filename<br />

READMOL and WRITEMOL operate on the<br />

current molecule. These commands will work only<br />

if there is at least one structure-related box<br />

(structure, formula, or molweight) on the form, and<br />

you are positioned to a valid entry in the database.<br />

READMOL reads a specified structure file and<br />

replaces the current molecule in the form.<br />

WRITEMOL saves the current molecule to a<br />

specified structure file; if the file doesn’t exist, it is<br />

created, otherwise it is overwritten. For both<br />

READMOL and WRITEMOL, the format of the file<br />

is determined by its extension; for example,<br />

benzene.cdx is a ChemDraw file.<br />

WRITETEXT exports the current list as delimited<br />

text with whatever delimiter is specified in the<br />

Preferences dialog.<br />

The table below shows examples of File<br />

Commands:<br />

Command Action<br />

READMOL<br />

benz.mol<br />

WRITEMOL<br />

saved.mol<br />

WRITETEXT<br />

hits.txt<br />

read specified file to become<br />

current molecule<br />

write current molecule to<br />

specified file<br />

export current list to a text file<br />

Database Commands<br />

OPENDB [R / R / RE] dbname<br />

CRETABLE tablename<br />

DELTABLE tablename<br />

SELTABLE tablename<br />

CREFIELD fieldname<br />

DELFIELD fieldname<br />

SORT [D] fieldname<br />

OPENDB opens a standard molecule database.<br />

Specify a pathname to the .mdb file, or a name from<br />

the ODBC Data sources list. You can specify the<br />

mode of database opening:<br />

• R—read-only<br />

• E—exclusive<br />

• RE—read-only and exclusive<br />

CRETABLE creates tables in the current database.<br />

DELTABLE deletes tables in the current database.<br />

SELTABLE selects a table form the current database<br />

and makes it the current working table for<br />

subsequent field actions.<br />

A-18 • <strong>CambridgeSoft</strong><br />

File Commands

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!