AW: AW: Strange disconnection

Florian Bogeschdorfer fb at memedia.de
Sat Oct 4 17:13:37 CDT 2003


This is my addRecord Code


on VALaddRecord tableName, recDataList
  put recdatalist
  if NOT listP(recDataList) then
    VALerror="Error VAL007: AddRecord not a list"
    return 0
  end if
  -- es findet keine Überprüfung statt, ob die übermittelten
  -- Felder und Dateitypen denen in der Datenbank entsprechen
  -- wäre zu langsam, also vorher sicherstellen
  set addRecordCursor = new( xtra "VCursor", GetRef(VAL[#ID]), "select
RecID, * from "&tableName,2,1,2)
  if ValentinaError()<>0 then
    VALerror=ValentinaErrorString()
    addRecordCursor=0
    return 0
  end if
  x=addRecord(addRecordCursor, recDataList)
  if ValentinaError()<>0 then
    VALerror=ValentinaErrorString()
    addRecordCursor=0
    return 0
  end if
  addRecordCursor=0
  flush(VAL[#ID])
  return 1
end  

This is from the message window:

valaddrecord("PRAEMIENtable",[#PRitemName:"test",#PR_ID:67])
-- [#PRitemName: "test", #PR_ID: 67]

If I was using wrong tablename, readonly cursor or wrong field name I would
get a normal error...

Though valentinaerrorstring() is EMPTY, I get 10054 error in the message
window... 

> -----Ursprüngliche Nachricht-----
> Von: valentina-bounces at lists.macserve.net 
> [mailto:valentina-bounces at lists.macserve.net] Im Auftrag von 
> Ruslan Zasukhin
> Gesendet: Samstag, 4. Oktober 2003 16:59
> An: valentina at lists.macserve.net
> Betreff: Re: AW: Strange disconnection
> 
> on 10/4/03 5:51 PM, Florian Bogeschdorfer at fb at memedia.de wrote:
> 
> >> You want say that EACH and ANY addRecord() command disconnects 
> >> clients ???
> > 
> > No, but this sole command for the specific table. I do not see a 
> > difference to other tables. If a field name was wrong or the cursor 
> > not OK should I not get a valentinaerror() ?
> 
> If error was such as you describe you WILL get error of course.
> 
> You can easy make check of this on GOOD your table.
> Ask bad field name and you will see that Valentina return you 
> err code.
> 
> I think problem something other.
> 
> --
> Best regards,
> Ruslan Zasukhin      [ I feel the need...the need for speed ]
> -------------------------------------------------------------
> e-mail: ruslan at paradigmasoft.com
> web: http://www.paradigmasoft.com
> 
> To subscribe to the Valentina mail list go to:
> http://lists.macserve.net/mailman/listinfo/valentina
> -------------------------------------------------------------
> 
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina



More information about the Valentina mailing list