AdsCreateTable90 Function | |
See the ADS documentation for more information about this function.
Namespace:
XSharp.RDD
Assembly:
XSharp.Rdd (in XSharp.Rdd.dll) Version: 2.21
Syntax FUNCTION AdsCreateTable90(
hConnect AS IntPtr,
strName AS STRING,
strDBObjName AS STRING,
usTableType AS WORD,
usCharType AS WORD,
usLockType AS WORD,
usCheckRights AS WORD,
usMemoSize AS WORD,
strFields AS STRING,
ulOptions AS DWORD,
strCollation AS STRING,
phTable OUT IntPtr
) AS DWORD
public static uint AdsCreateTable90(
IntPtr hConnect,
string strName,
string strDBObjName,
ushort usTableType,
ushort usCharType,
ushort usLockType,
ushort usCheckRights,
ushort usMemoSize,
string strFields,
uint ulOptions,
string strCollation,
out IntPtr phTable
)
Request Example
View SourceParameters
- hConnect
- Type: IntPtr
- strName
- Type: String
- strDBObjName
- Type: String
- usTableType
- Type: Word
- usCharType
- Type: Word
- usLockType
- Type: Word
- usCheckRights
- Type: Word
- usMemoSize
- Type: Word
- strFields
- Type: String
- ulOptions
- Type: DWord
- strCollation
- Type: String
- phTable
- Type: IntPtr
Return Value
Type:
DWordAll methods in the Advantage Client Engine return either 0 for success or an error code.
Most of the error numbers are defined in the AceError enumeration.
You can call AdsGetLastError() to retrieve the message for the error code.
Remarks This function calls the method with the same name in the Avantage Client Engine.
Some important differences between the ADS API in Visual Objects and the ADS API in X#
Handles |
In Visual Objects the handles (Table Handle, Index Handle, Connection Handle etc) are declared as DWORD.
In X# they are declared as IntPtr since the size can be 32 bits when the application is running in 32 bit mode but 64 bits when the application is running in 64 bits mode.
|
String parameters |
In Visual Objects the string parameters are all declared as PSZ. In X# you can use normal strings. The .Net runtime takes care of the conversions between managed unicode strings and unmanaged native Ansi strings.
|
See Also