First the attached pic. then this.
---------------------------
KBasic
---------------------------
Unknow exception in KBasic runtime (kbrun).
---------------------------
OK
---------------------------
- Code: Select all
If sRecordsId Then
If Records.First(sRecordsId) Then
recCount = Records.Length(sRecordsId)
frm_main.txtInfo.Text = recCount
ReDim ArtRec(recCount + 1)
rc = 1
Do
ArtRec(rc).arNr = Records.Value(sRecordsId, "artnr")
ArtRec(rc).arArt = Records.Value(sRecordsId, "artikel") '****** after this line it errors
ArtRec(rc).arSize = Records.Value(sRecordsId, "size")
ArtRec(rc).arType = Records.Value(sRecordsId, "type")
ArtRec(rc).arID = Records.Value(sRecordsId, "artid")
ArtRec(rc).arIndate = Records.Value(sRecordsId, "indate")
ArtRec(rc).arInpris = CInt(Records.Value(sRecordsId, "inpris"))
ArtRec(rc).arAntut = CInt(Records.Value(sRecordsId, "antut"))
ArtRec(rc).arTotut = CInt(Records.Value(sRecordsId, "antuttot"))
ArtRec(rc).arStat = CInt(Records.Value(sRecordsId, "artstat"))
ArtRec(rc).arKvnr = CInt(Records.Value(sRecordsId, "artkv"))
ArtRec(rc).arRedat = Records.Value(sRecordsId, "artret")
ArtRec(rc).arKr = CInt(Records.Value(sRecordsId, "totkr"))
ArtRec(rc).arKrtot = CInt(Records.Value(sRecordsId, "totkrtot"))
ArtRec(rc).arAge = CInt(Records.Value(sRecordsId, "age"))
ArtRec(rc).arPris = CInt(Records.Value(sRecordsId, "artpris"))
rc = rc + 1
Loop While Records.Next(sRecordsId)
result = True
Else
It has been working before, this is the first time I ran it after last update.
/Henning