From: Geoff Schaller on
Ah! Now we're getting somewhere...

So show us the source code to line 12 of MyWindow:DeleteRecord()
This is your code - we don't know what is there.
The error is obvious: something wanting a string got a NIL.

Geoff



"valerbru" <valerbru(a)tiscali.it> wrote in message
news:44c1df6c-5436-4248-952e-84a6760b06b6(a)t10g2000yqg.googlegroups.com:

> ***********************ERROR********************************
> CA-Visual Objects (Version 2.6.0, Build 1151), Version 2.6
> 04/06/2010 11.29.24
> Application: F:\CAVO26\bin\DemoSql.DBG
>
> Error message:
> --------------
> Error Code: 33 [ DATA TYPE ERROR ]
> Subsystem: BASE
> Function: =>STRING
> Argument: NIL
> Requested type: STRING
> CallStack:
> MYWINDOW:DELETERECORD (Line: 12)
> APP:START (Line: 9)
>
> Error Object created:
> --------------------
> SubSystem :BASE
> SubCode :0
> GenCode :Data type error
> OsCode :0
> ArgType :NIL
> FuncPtr :0x00504AB3
> ArgNum :0
> FuncSym :=>STRING
> Severity :0
> CanDefault :.F.
> CanRetry :.F.
> CanSubstitute :.T.
> Operation :
> Description :
> FileName :
> Tries :0
> FileHandle :0
> SubCodeText :
> Arg :NIL
> ArgTypeReq :STRING
> MaxSize :0
> SubstituteType :STRING
> CallFuncSym :
> --------------------