Skip to main content

find ctrl character in file

  • March 22, 2021
  • 3 replies
  • 0 views

CRAIG CURTIS
Forum|alt.badge.img
I am getting a error on a upload stating that I have a hex 0x02 in a field.  Have 1500 record and I am struggling to find the record that contains the control code.

Ideas on how to find the record/attribute.

Craig

3 replies

Brian Cram
Forum|alt.badge.img+3
  • Rocketeer
  • March 22, 2021
I am getting a error on a upload stating that I have a hex 0x02 in a field.  Have 1500 record and I am struggling to find the record that contains the control code.

Ideas on how to find the record/attribute.

Craig
open "filename" to file then
  select file
  loop
    readnext id else exit
    read i from file,id then
      if index(i,char(2),1) then
        crt "Hey, Craig, I found it: ":id
      end
    end
  repeat
end

------------------------------
Brian S. Cram
Senior Technical Support Engineer
Rocket Software
------------------------------

CRAIG CURTIS
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • March 22, 2021
open "filename" to file then
  select file
  loop
    readnext id else exit
    read i from file,id then
      if index(i,char(2),1) then
        crt "Hey, Craig, I found it: ":id
      end
    end
  repeat
end

------------------------------
Brian S. Cram
Senior Technical Support Engineer
Rocket Software
------------------------------
Thanks Brian

Seems so simple when you have a clear mind.  :)

Appreciate the answer.  

Craig


------------------------------
Craig Curtis
craig.curtis@seviersd.org
------------------------------

Brian Cram
Forum|alt.badge.img+3
  • Rocketeer
  • March 22, 2021
Thanks Brian

Seems so simple when you have a clear mind.  :)

Appreciate the answer.  

Craig


------------------------------
Craig Curtis
craig.curtis@seviersd.org
------------------------------
Craig, you've met me. Where did you get the idea that I have a clear mind????

------------------------------
Brian S. Cram
Senior Technical Support Engineer
Rocket Software
------------------------------