HI,I am creating a datport for bin table.Want to import data in the same.I ma getting error as field cannot be empty.please specify a value..I searched mibuso but none of soultions work.The field in the file are bin code.zone,desc.I ma careting dataport eith fields like code,zone,desc.Acc to mibuso since it was not working i took these variaables & on afterimport wrote the code as bin.setrange(location code,abc);
if bin.find('-') thne
bin.code=code;
bin.zone=zone
bin.desc=desc;
bin.insert;
NOt importing saying field cannot be empty.please spcify a value.
please hlep
0
Comments
Why even have that line of code?
The dash - in find looks to search for the first record in the table.
And another tip is if you only use "then" it's only working on the next line in your code.
You would use "Then begin........end; to encapsulate all the code.
https://msdn.microsoft.com/en-us/library/dd338872.aspx
Remove if bin.find('-') then
http://www.BiloBeauty.com
http://www.autismspeaks.org