Hello every one ive got a request for some help im sort of a noob and im sure this is pretty simple. but i have many text files that i need to call a specific one/open it, extract a portion of the text based on a field in a form.....then import the text to a Memo field on that form with the press of a button then with the press of another button use that data for printing purposes i can figure all the bells and whistles out i just cant wrap my brain around the extraction portion. here is a sample of the text. i need to search for the text in blue and extract all the text between the green lines if its any help this is a UPS label formatted in ZPL for printing on a Zebra printer. any snippits of code or explanation will be of great help...Thanks in advance :
^BY3,,203^FT156,979^BCN,,N^FD>:1ZE9>58953030060867 0^FS
^FT10,1038^A0N,24,24^FDBILLING: P/P^FS
^FT10,1063^A0N,24,24^FDREF1: 9553327150^FS
^FT544,1204^A0N,20,20^FDCUU 11.1 Z140 39.5V 04/2013^FS
^FT20,1189^A0N,25,25^FD^FO0,1265 ^GB1200,0,1^FS^FO0,1425 ^GB1200,0,1^FS^FT15,1300 ^A0N,35,35^FDPO : 9553327150^FS^FT420,1300 ^A0N,30,30^FDSHIP DATE: May 09, 2013^FS^FT15,1340 ^A0N,35,35^FDSO : 184266279^FS^FT600,1340 ^A0N,25,25^FDICN : 20836311^FS^FT420,1340 ^A0N,25,25^FDWAVE : 96795^FS^FT15,1380 ^A0N,35,35^FDDPCI: 550091116^FS^FT420,1380 ^A0N,30,30^FDQTY : 6^FS^FT15,1420 ^A0N,35,35^FDITEM: 84190^FS^FT300,1420 ^A0N,22,22^FD SKYLANDERS SA CHARACTER PACK ASSORTMENT (6 COUNT)^FS^FT100,1580 ^A0N,30,30^FD^BY4^BCN,140,N,N^FD>;0020020626020385 6040^FS^FT275,1610 ^A0N,30,30^FD00200206260203856040^FS^FT600,1380 ^A0N,25,25^FDSID : 40551238^FS^FS
^XZ~SD20
^XA^CI13
^LH0,0^FS
^PR4,4,2^FS
^FT0,1016^GB809,0,20^FS
^FT0,758^GB809,0,2^FS
^FT0,656^GB809,0,20^FS
^FT244,636^GB0,215,2^FS
^FT0,421^GB809,0,2^FS
^FT20,34^A0N,20,20^FDDISTRIBUTION^FS
^FT20,58^A0N,20,20^FD(559) 497ð4300^FS
^FT20,82^A0N,20,20^FDACTIVISION BLIZZARD FDC^FS
^FT20,107^A0N,20,20^FD4247 SOUTH MINNEWAWA^FS
^FT20,131^A0N,20,20^FDFRESNO CA 93725^FS
^FT406,51^A0N,40,40^FD2 LBS^FS
^FT630,51^A0N,30,30^FD3 OF 8^FS
^FT20,219^A0N,30,30^FDSHIP^FS
^FT20,260^A0N,30,30^FD TO:^FS
^FT122,205^A0N,30,30^FD(559) 497ð4300^FS
^FT122,238^A0N,30,30^FDWALMART STORES INC.^FS
^FT122,270^A0N,30,30^FD891 ROUTE 9^FS
^FT122,303^A0N,30,30^FDWALðMART STORE 2116^FS
^FT122,345^A0N,40,40^FDQUEENSBURY NY 12804^FS
^FT20,630^BD2^FH^FD003840128040000[)>_1E01_1D961Z00608714_1DUPSN_1DE98953_1E07P3_1DDQ HG9D_1CO*TS+OH4D:9W2L+7GIET2+UG"HWOJ3%H(J_0D_1E_04 ^FS
^FT284,496^A0N,71,71^FD NY 128 0ð01^FS
^BY4,,102^FT375,620^BCN,,N^FD>;42012804^FS
^FT20,711^A0N,50,50^FDUPS GROUND^FS
^FT20,740^A0N,25,25^FDTRACKING #: 1Z E98 953 03 0060 8714^FS
^FT687,756^GB122,0,100^FS
^BY3,,203^FT156,979^BCN,,N^FD>:1ZE9>58953030060871 4^FS
^FT10,1038^A0N,24,24^FDBILLING: P/P^FS
^FT10,1063^A0N,24,24^FDREF1: 9553327150^FS
^FT544,1204^A0N,20,20^FDCUU 11.1 Z140 39.5V 04/2013^FS
^FT20,1189^A0N,25,25^FD^FO0,1265 ^GB1200,0,1^FS^FO0,1425 ^GB1200,0,1^FS^FT15,1300 ^A0N,35,35^FDPO : 9553327150^FS^FT420,1300 ^A0N,30,30^FDSHIP DATE: May 09, 2013^FS^FT15,1340 ^A0N,35,35^FDSO : 184266126^FS^FT600,1340 ^A0N,25,25^FDICN : 20835563^FS^FT420,1340 ^A0N,25,25^FDWAVE : 96795^FS^FT15,1380 ^A0N,35,35^FDDPCI: 550091116^FS^FT420,1380 ^A0N,30,30^FDQTY : 6^FS^FT15,1420 ^A0N,35,35^FDITEM: 84190^FS^FT300,1420 ^A0N,22,22^FD SKYLANDERS SA CHARACTER PACK ASSORTMENT (6 COUNT)^FS^FT100,1580 ^A0N,30,30^FD^BY4^BCN,140,N,N^FD>;0020020626020384 8328^FS^FT275,1610 ^A0N,30,30^FD00200206260203848328^FS^FT600,1380 ^A0N,25,25^FDSID : 40551085^FS^FS
^XZ~SD20
^XA^CI13
^LH0,0^FS
^PR4,4,2^FS
^FT0,1016^GB809,0,20^FS
^FT0,758^GB809,0,2^FS
^FT0,656^GB809,0,20^FS
^FT244,636^GB0,215,2^FS