NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
setting the value of a stringtheory object to the contents of a record buffer
« previous
next »
Print
Pages: [
1
]
Author
Topic: setting the value of a stringtheory object to the contents of a record buffer (Read 4396 times)
MikeR
Sr. Member
Posts: 265
setting the value of a stringtheory object to the contents of a record buffer
«
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"
Logged
Bruce
Global Moderator
Hero Member
Posts: 11251
Re: setting the value of a stringtheory object to the contents of a record buffer
«
Reply #1 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
Logged
MikeR
Sr. Member
Posts: 265
Re: setting the value of a stringtheory object to the contents of a record buffer
«
Reply #2 on:
November 14, 2018, 02:49:08 AM »
Thx Bruce
setvalue(fil:record,false) fails rule 6
assign(file:record) fails rule 5
Logged
Bruce
Global Moderator
Hero Member
Posts: 11251
Re: setting the value of a stringtheory object to the contents of a record buffer
«
Reply #3 on:
November 14, 2018, 10:00:53 PM »
try
str.setvalue(clip(fil:record))
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
setting the value of a stringtheory object to the contents of a record buffer