PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Initialize the analysis of user groupware.
Note: This function concerns the user groupware used in compatible mode (kept for backward compatibility from version 18).
Example
// Initialize the analysis of user groupware
IF gpwInitAnalysis() = False THEN
Error(ErrorInfo())
END
Syntax
<Result> = gpwInitAnalysis()
<Result>: Boolean
  • True if the initialization was successfully performed,
  • False if an error occurred. ErrorInfo is used to identify the error.
Components
WINDEVWEBDEV - Server code wd230gpu.dll
Linux wd230gpu.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Definindo uma nova senha para o GPU_USER
Exemplo:

sPasswordGPWu is string = "PCSGPW2001"
HPass(GPWUSER, sPasswordGPWu)
HCreationIfNotFound(GPWUSER)
HChangePassword(GPWUSER, "TEST")
BOLLER
Mar. 23 2017
Exemplo de uso do comando gpwInitAnalysis()
//Conexao
ok, ok1, ok2, ok3 is boolean

myConn is Connection
myConn..Provider = hNativeAccessSQLServer
myConn..User = "adriano"
myConn..Password = "adriano@2016"
myConn..Source = "192.168.0.162\projeto01"
myConn..Database = "projeto01"
myConn..Access = hOReadWrite

ok1 = HOpenConnection(myConn)
IF ok1 = False THEN
Info(ErrorOccurred() +" - "+ HErrorInfo())
END


IF gpwInitAnalysis() = False THEN
Error(ErrorInfo())
ok2 = False
ELSE

ok2 = True
IF gpwOpen() = gpwOk
ok3 = True
ELSE
Info(ErrorOccurred() +" - "+ HErrorInfo())
ok3 = False
END

END

NextTitle("Atenção")

IF ok1 = True AND ok2 = True AND ok3 = True THEN //deve dar tudo ok

Info("Conectou com sucesso no banco de dados!")

ELSE

Info("Falha ao tentar conectar no Servidor")

END
BOLLER
Nov. 28 2016
Directories fixed to gpw_ProjectName
gpwInitAnalysis() 'nails' the directories of gpw Users & gpw Rights to
MyProjects\ProjectDir\Exe\gpw_ProjectName

Function gpwOpen(DirRights , DirUsers) will disrespect any directory-settings after doing a gpwInitAnalysis() !!

The description of gpwInitAnalysis(..) says nothing more than the function itself says. Presumably it's to be used like HOpenAnalysis???
Jimbo
Aug. 14 2013