Custom KeyAnswered

Using GetFeatureValue with custom field name and default value in vba code returns always default value. 

, edited

Much more information is needed. We can’t reproduce that behavior: https://wyday.com/limelm/help/faq/#useful-reports

I have done things as per that link and I still not able to read the value of "Custom Field"

I am doing the development in the following enviornment (MS Access VBA)

  1. Win 10 - 64 bit system with 32 bit Office 365
  2. I have the latest TurboActivate.dll  and for 64 bit dll (Product version 4.3.3.0)
  3. I have created a custom field called "Expiry" set to absolute time (30th Sep 2020)
  4. This field was created after I have downloaded the TurboActivate.dat and the key has been activated in the system.
  5. When I am trying to read this field using "GetFeatureValue", it is returning the default value sent (in this case system date) rather than 30th Sep 2020
  6. I have set DaysBetweenChecks = 30 and  GracePeriodLength = 7
Answer

If you've added a custom license field after you've activated the key then you won't be able to read the field until you re-activate.

So, call ta.Activate(). Then attempt to read the field again.

Covered here: https://wyday.com/limelm/help/license-features/#change

I have done that too. In fact I have deactivated the key in your site and activated the same using my application. 

Still I am not able to read the field. 

Would it help if I discard this key and try with a new one?

Yeah, that would be the next thing to try.

I have done that too now. Still unable to read. 

I have tried using the new key in the same system. Should I use a different system?

Answer

It's working for us. It's almost certainly a bug in your code (or how you're setting things up in your product).

  1. So, create a simple field with an alpha-numeric name (like "abcd").
  2. Create a new key and set that field to some value (say, "1234").
  3. Deactivate your product, and activate with the new key.
  4. Call TA_GetPKey() in your app to verify you've activated the correct key.
  5. Call TA_GetFeatureValue() without a default value for "abcd" to get the value.

And add plenty of breakpoints so you can tell exactly where things are failing.