WDX: Return a blank value
Moderators: Hacker, petermad, Stefan2, white
WDX: Return a blank value
Hi!
Content plugin problem!
How return a nil (blank value) if my field type is ft_numeric_32?
I created a function that deal with folders only, how can I prevent
any values being shown on files.
// Peter
Content plugin problem!
How return a nil (blank value) if my field type is ft_numeric_32?
I created a function that deal with folders only, how can I prevent
any values being shown on files.
// Peter
Return ft_fieldempty constant or ft_fileerror in ContentGetValue function. In this case no matter what you write into FieldValue.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
What if you try the simpliest implementation of ContentGetValue? Here is an example in C++:
What does TC show in this case?
Code: Select all
int __stdcall ContentGetValue(char* FileName, int FieldIndex, int UnitIndex,
void* FieldValue, int maxlen, int flags)
{
return ft_fieldempty;
}
Yes, that worked. But I have found that the example I found here:Flint wrote:What does TC show in this case?
http://www.ghisler.ch/board/viewtopic.php?t=5808
is wrong.
Anybody see what's wrong?
// peter
You can found the example in a reply by franck8244, the last entry in theLefteous wrote:2petergus
Can you give a hint where exactly in the example can be found?
thread.
Something is wrong with the ContentGetValue Function, if I use anyone of
the constants ( ft_fieldempty ) TC show the value not, in this case, hide the field.
// Peter
2petergus
It doesn't matter which field type has been returned in ContentGetSupportedField. Just return ft_fieldempty as shown in http://www.ghisler.ch/board/viewtopic.php?p=54848#54848How can I add a blank value when fieldtype is ft_numeric_32?
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...