Problem with HDeleteLink (WinDEV 17)

Startbeitrag von Steven Sitas am 05.05.2014 10:07

I am trying to delete ALL links in a C/S HFSQL database, using the following code:

// Get the links ...
LsLinks is string = HListLink("*",myconnect)
LsLink is string
MyLink is Link Description
//Delete the existing links...
LiMax is int = StringCount(LsLinks,CR) + 1
FOR i = 1 _TO_ LiMax
LsLink = ExtractString(LsLinks,i,CR)
IF ExtractString(LsLink,1,TAB) "" THEN
DeleteLink(myconnect,myconnect,ExtractString(LsLink,1,TAB))
END
END

The above code was posted here by Joris

Here is where the problem shows up:

1. I DELETE in my Analysis a previous used link (then regenerate and compile the app)
2. When I run the above code, the server returns the Deleted Link, with HListLink.
Seems OK since it is still in the Servers Links.
3. But when I try to delete this link with the code:
DeleteLink(myconnect,myconnect,ExtractString(LsLink,1,TAB))
Windev says it cannot find this link in my connection and throws an error

So how can I programmatically delete this link from my HFSQL C/S database?

Steven Sitas

Antworten:

Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.