dbTalk Databases Forums  

Error "Data is too long for field"

comp.databases.paradox comp.databases.paradox


Discuss Error "Data is too long for field" in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lothar Krepke
 
Posts: n/a

Default Error "Data is too long for field" - 10-11-2011 , 03:09 PM






Howdy,

I have some code that fires an error that I've not seen before. And,
when I google it, I get only ONE hit (Where's my prize...?)

In any case the error is "Data is too long for field" and I am
baffled.

I've marked the line that fires the error with "/\/\/\/\/\/\/\" below,
and would appreciate any help you might provide.

Many thanks,

A.C.



method pushButton(var eventInfo Event)
var
tcRegister, tcNewprogs tCursor
numVal smallint
daFilter dynArray[] string
progStartDate date
progName string
endVar

if not tcRegister.open("ATA:register.db")
then errorShow()
endIf

while not tcRegister.eot()

if not tcRegister.locate("Sts","!")
then errorShow()
endIf

progName = tcRegister.prog

if not tcNewprogs.open("ATA:newProgs.db")
then errorShow()
endIf

if not tcNewProgs.locate("Prog","Progname")
/\/\/\/\/\/\/\/\/\/\/\/\/\/\ line above fires error \/\/\/\/\/\/\/\/\/
\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\
then errorShow()
endIf

progStartDate = tcNewProgs.StartDate

numVal = tcRegister.num

if progStartDate < today()
then
daFilter["Num"] = string (numVal)
if not
People.Page1.MROatTop.IDrecord.NumBox.Num.setGenFi lter(daFilter) then
errorShow()
endIf
else
tcRegister.locateNext("Sts","!")
endIf

tcRegister.close()
tcNewProgs.close()

endWhile

endMethod

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.