Hi, i am currently working on a project for my advanced higher course, i am currently having some problems with passing a varialbe in a procedure to sort a list, the program is an address book, it uses a type 'contact' with fields like first_name, Last_name etc... On the form i am using a combo box to list these fields but in the form of text, and in the procedure for sorting i call in the text in this combo box to go in place of the varaible field:
call sort(contacts(), com_field.text, ...)
sub sort(contact_arr() as contact, Field as string, ...)
....
Contact(group,Contactnum).Field
...
This is passed into the procedure as a string, but it does not work, does anyone know how i can pass a type field as a parameter in a procedure?
Thanks
call sort(contacts(), com_field.text, ...)
sub sort(contact_arr() as contact, Field as string, ...)
....
Contact(group,Contactnum).Field
...
This is passed into the procedure as a string, but it does not work, does anyone know how i can pass a type field as a parameter in a procedure?
Thanks