NetTalk Central

Author Topic: Converting database to Sync properties  (Read 3004 times)

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Converting database to Sync properties
« on: July 13, 2017, 12:53:37 PM »
Hi Bruce,

I'm doing a convert app to convert old records to new database with sync properties but i'm getting this error:

Hide:Access:Demanda.Insert PROCEDURE

ReturnValue          BYTE,AUTO

  CODE
  GET(Demanda,0)
  If DEM:GUID = '' or Duplicate(DEM:GUIDKey) then DEM:GUID = ().  <===== ERROR

Regards,
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: Converting database to Sync properties
« Reply #1 on: July 13, 2017, 10:47:34 PM »
you've missed a setting on the StringThoery global extension "Detect Guid Duplicates".
There's an option there;
GetGuid Function name
that needs to be filled in.

You can make a smallsource procedure if you like, or just have a global, StirngTheory objet. (called say glo:st). In which case you would put here;

glo:st.MakeGuid
(no brackets at the end of that.)

Cheers
Bruce

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Converting database to Sync properties
« Reply #2 on: July 14, 2017, 05:20:34 AM »
Hi Bruce,

Sorry if i didn't understand, but set this with glo:st.makeguid and got error (ambiguous function)
so, for now i deleted if from global extension.

Any problem?

Thanks,
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: Converting database to Sync properties
« Reply #3 on: July 14, 2017, 11:23:04 PM »

>> Any problem?

probably. Do you have a global StringTheory object declared in your dictionary?

Cheers
Bruce


walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Converting database to Sync properties
« Reply #4 on: July 17, 2017, 03:12:13 AM »
Yes, for sure
Walter - SOFTVALE