From 2ba1523902ae2c95096e03d5c0c27ba971a86819 Mon Sep 17 00:00:00 2001 From: bonazzi Date: Mon, 26 Sep 2016 22:34:38 +0000 Subject: [PATCH] Patch level : 12.0 no patch Files correlati : Commento : Aggiunti metodi freeze unfreeze frozen not_frozen git-svn-id: svn://10.65.10.50/branches/R_10_00@23328 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/include/recset.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/include/recset.h b/src/include/recset.h index 0cb629ba2..0738c5a7f 100755 --- a/src/include/recset.h +++ b/src/include/recset.h @@ -138,10 +138,13 @@ protected: virtual const TVariant& get_field(int logic, const char* field) const; virtual void set_custom_filter(TCursor& cursor) const { } - public: bool valid_cursor() const { return _cursor != NULL; } virtual TCursor* cursor() const; + void freeze(bool on = true) const { return cursor()->freeze(on); } + void unfreeze() const { return cursor()->freeze(false); } + bool frozen(bool on = true) const { return cursor()->frozen(); } + bool not_frozen(bool on = true) const { return cursor()->not_frozen(); } void set(const char* use); virtual void requery(); virtual TRecnotype items() const; @@ -171,4 +174,4 @@ int table2logic(const TString& name); TRecordset* create_recordset(const TString& sql); -#endif \ No newline at end of file +#endif