Hi
I create new form which contain 3 columns Tablebox (Type, Color and Qty ) let say the data come from table X. This table only have one field , Text (250) , this field is contains Type, Color and Qty . I have to parse this data in order to populate my tablebox inside my from.
I am parsing the record from table X On After Get record function on my form; everything works great , except the user don't have the ability to sort the data on the form.
Is the a way for me to do something so the the user will be able to sort by Color or Type on the form ?
Carlos Yuwono
0
Answers
On the form load, populate the temporary table with the parsed information.
But it would probably be better to have done the parsing prior to inserting the data to the database
IF FIND('-') THEN
REPEAT
WorkTextLine := "Raw Data 1" + "Raw Data 2" + "Raw Data 3" + "Raw Data 4";
IF DELCHR(COPYSTR(WorkTextLine,45,1),'>',' ') = vFilter THEN BEGIN
MARK(TRUE);
END ELSE
MARK(FALSE);
UNTIL NEXT = 0;
IF vFilter <> '' THEN
MARKEDONLY(TRUE)
ELSE
MARKEDONLY(FALSE);
FINDFIRST;
vFilter will be the source for the text box (user input).