RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.StringToMode Method

Converts a mode string to the corresponding TDataSetAdapterMode value.

Pascal
function StringToMode(const AValue: string): TDataSetAdapterMode;
C++
__fastcall TDataSetAdapterMode StringToMode(const AnsiString AValue);

StringToMode interprets the specified string to a value that can be applied to the Mode property. 

AValue is a string to convert.  

If AValue is an empty string, StringToMode returns the default mode (amBrowse). Otherwise, StringToMode converts from one of the values in the list GetAdapterModeNames supplies to the corresponding TDataSetAdapterMode value. If AValue is not an empty string or one of the strings in the list that GetAdapterModeNames supplies, StringToMode raises an EAdapterException. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!