cancel
Showing results for 
Search instead for 
Did you mean: 

AdsDDGetDatabaseProperty in VO

Former Member
0 Kudos
LOCAL cDefPath as PSZ 
LOCAL nPathDef as DWord

    AdsDDGetDatabaseProperty( SysObject():nConnection , ADS_DD_COMMENT, @cDefPath, @nPathDef)
?   Mem2String ( cDefPath , nPathDef )

This is the code i am using but it return crap can someone see what i am doing wrong. I have used AdsDDSetDatabaseProperty to confirm that Sysodject():nConnection this works fine Code below

AdsDDSetDatabaseProperty( SysObject():nConnection, ADS_DD_COMMENT, String2Psz("qwertyuioplkjhgfdsamnbvcxz 12345"), 20 )

Accepted Solutions (0)

Answers (1)

Answers (1)

joachim_drr
Contributor
0 Kudos

you need to allocate some space for cDefPath and then pass the maximum available length using nPathDef into the function. It then returns the used space. Look at the online help how this is done in C.