Appendix B: API Reference for FoxPro

This section contains API reference for Microsoft Visual FoxPro programming language.

Almost all modern programming languages have built-in functions or libraries with functions with implement HTTP protocol. However, Microsoft Visual FoxPro does not have such built-in functions or libraries with such functions. Therefore, functions in Microsoft Visual FoxPro have been implemented, using which you can call SIETS API commands.

This section contains the following topic:

Microsoft Visual FoxPro

Use the siets_declare() function to declare the SIETS dynamic linkage library siets_api.dll that implements the SIETS API library functions.

Library Initiation

siets_declare()

Session

siets_open_session(cHost, nPort, cStorage, cUser, cPasswd, nTimeout)

siets_close_session(nSessId)

Generic Command

siets_command(nSessId, cCmdName, cContent, cEncoding)

Data Manipulation

siets_insert(nSessId, cId, cTitle, nRate, cDomain, cText, cInfo, cHidden, cEncoding)

siets_update(nSessId, cId, cTitle, nRate, cDomain, cText, cInfo, cHidden, cEncoding)

siets_replace(nSessId, cId, cTitle, nRate, cDomain, cText, cInfo, cHidden, cEncoding)

siets_delete(nSessId, cId, cEncoding)

siets_index(nSessId)

siets_clear(nSessId)

siets_get_sheme(nSessId)

siets_set_sheme(nSessId, aLocations, aPolicies)

Status Monitoring

siets_status(nSessId)

Data Retrieval

siets_lookup(nSessId, cId, cEncoding)

siets_retrieve(nSessId, cId, cEncoding)

siets_search(nSessId, cQuery, nDocs, nOffset, cRelevance, nMaxFromDomain, cCaseSupport, nRateFrom, nRateTo, cEncoding)

siets_similar(nSessId, cId, cText, nLen, nQuota, nDocs, nOffset, cEncoding)

siets_alternatives(nSessId, cQuery, cEncoding)


PreviousTopNext