NetTalk Central

Author Topic: setting the value of a stringtheory object to the contents of a record buffer  (Read 2525 times)

MikeR

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • Email
How to I set the value of a stringtheory object to the current contents of a file buffer
eg. st1.setvalue(fil:record) give a compiler error "ambiguous procedure call - rule 5"

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
The ambiguity is because a record is a group not a string.
Here are some possible ways to let the compiler know better;

This is probably the best;
st1.setvalue(fil:record,false)

if that still fails try;

st1.assign(fil:record)

Cheers
Bruce

MikeR

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • Email
Thx Bruce

setvalue(fil:record,false) fails rule 6
assign(file:record) fails rule 5

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
try
str.setvalue(clip(fil:record))