NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MikeR on November 13, 2018, 02:19:05 PM

Title: setting the value of a stringtheory object to the contents of a record buffer
Post by: MikeR on November 13, 2018, 02:19:05 PM
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"
Title: Re: setting the value of a stringtheory object to the contents of a record buffer
Post by: Bruce on November 13, 2018, 11:42:18 PM
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
Title: Re: setting the value of a stringtheory object to the contents of a record buffer
Post by: MikeR on November 14, 2018, 02:49:08 AM
Thx Bruce

setvalue(fil:record,false) fails rule 6
assign(file:record) fails rule 5
Title: Re: setting the value of a stringtheory object to the contents of a record buffer
Post by: Bruce on November 14, 2018, 10:00:53 PM
try
str.setvalue(clip(fil:record))