1. Roger
  2. as Valentina DB Server
  3. 金, 8月 21 2020, 09:45 PM
  4.  メールで購読
Hello

If I read a picture field in the Valentina db it is ok, the next Cursur pos I read, the picture on the db is empty (0 bytes) but the cursor give me the value from the picture readed before.

Is this the same problem we have in the report ? Or its any thing I make wrong?

Regards Roger

(Xojo with 10.4.20)
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Roger,

No, it’s something else.
Thank you, we’ll check it soon.
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
I can reproduce it with Valentina Server connection.
What about the IsNull method? For me, it is true for an empty field
コメント
There are no comments made yet.
Roger 承諾済みの回答
Thanks Sergey

If ModellCursor.PictureField("BildFront";).Value.IsNull Then
- is every time False

If ModellCursor.Field("BildFront";).DataSize > 0 Then
- had every time a value > 0

If ModellCursor.Field("BildFront";).ISNULL Then
- this works.

I need it to work with field, can not use PictureField....
添付ファイル
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Yes, it is better to always check if a field is not null before getting the value, so it is correct:

If ModellCursor.Field("BildFront").ISNULL Then


We'll recheck why the previous value is not cleared when the server is used (probably it is some optimization).
コメント
There are no comments made yet.
Roger 承諾済みの回答
Ok, thanks Sergey.

Have a nice weekend.
Roger
コメント
There are no comments made yet.
  • ページ :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories