1. Beatrix Willius
  2. as Valentina DB Server
  3. Пятница, Март 24 2017, 02:12 PM
  4.  Подписаться через email
Hi guys,

so far I have been creating and opening server files on the local network with a folderitem. Now I want to change this to use the database name. The documentation at roducts:adk:api:vdatabase_class:diskmethods#vdatabase.open" target="_blank" rel="nofollow">http://www.valentina-db.com/docs/dokuwiki/v5/doku.php?id=valentina:products:adk:api:vdatabase_class:diskmethods#vdatabase.open tell me that both .create and .open should be able to use a string as parameter. However, when I try this with


ValentinaDB.Create(DatabaseName, EVDbMode.kDsc_Dat_Blb_Ind, 256*1024)


or


ValentinaDB.open(DatabaseName)


I get an error message "Parameter inLocation expects class Folderitem but this is class string". Valentina 6 latest I think. What am I doing wrong here?

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
The link was mangled:

roducts:adk:api:vdatabase_class:diskmethods#vdatabase.open" target="_blank" rel="nofollow">docs

I give up. You can find this in your docs.
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hello Beatrix,

For Valentina Server database you should create a new FolderItem instance using GetFolderItem function

ValentinaDB.open( GetFolderItem( DatabaseName ) )


We have to fix it in documentation.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
So simple. Thanks and have a great weekend!
Комментарий
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