>>>USE (m.TableTo Use) IN 1 >>>>>>I am trying refer to a field in the table this way:
>>>Variable = (m.TableToUse).fieldname && Is not working for me. >>>Variable = (m.TableToUse.fieldname) && Is also not working for me. >>>>>>How is it done, please?
Variable = eval(m.TableToUse + ".fieldname")Unless your TableToUse begins with a digit, contains spaces or some other nasty things which are allowed in filenames but not in variables. Then Fox will adorn it with W1 for an alias (or Wn, where n is the workarea in the current DS).
USE (m.TableTo Use) IN 1 alias ttu variable=ttu.fieldname(which I wrote when I thought I read the whole thread... well, I did, just not exactly whole)