PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → Is it possible to share 1 database with 2 separate apps?
Is it possible to share 1 database with 2 separate apps?
Started by RobertLEO, Oct., 16 2019 12:24 PM - 2 replies
Registered member
36 messages
Posted on October, 16 2019 - 12:24 PM
So I am planning to make 2 apps that work off each other, the gist of the apps are that App A will be made for consumers while App B will be made for the service providers, where users of App A will be able to request for services from service providers using App B, and service providers of B can create something like a prescription for the users of A to buy.

Can this be done?
Posted on October, 16 2019 - 12:33 PM
Hi Robert,

yes you can :) simply share the same analysis with both projects (I share the same analysis through 8 WinDev Apps and a WinDev Mobile App)

Then you need to define the directory like this (in the Initializing code of the project)

GLOBAL
sVerzeichnis is string

LOCAL
sDir is string

sDir = SysDirStorageCard()
sVerzeichnis=CompleteDir(sDir)+"yourappdatadir"
IF NOT fDirectoryExist(sVerzeichnis) THEN
fMakeDir(sVerzeichnis)
END
HChangeDir("*",sVerzeichnis)
Registered member
36 messages
Posted on October, 16 2019 - 2:09 PM
Alexander Predl wrote:
Hi Robert,

yes you can simply share the same analysis with both projects (I share the same analysis through 8 WinDev Apps and a WinDev Mobile App)

Then you need to define the directory like this (in the Initializing code of the project)

GLOBAL
sVerzeichnis is string

LOCAL
sDir is string

sDir = SysDirStorageCard()
sVerzeichnis=CompleteDir(sDir)+"yourappdatadir"
IF NOT fDirectoryExist(sVerzeichnis) THEN
fMakeDir(sVerzeichnis)
END
HChangeDir("*",sVerzeichnis)


Thanks! I will give this a try!