[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== Adding a Sring of Data to a Variable (AREV Specific) ====
=== At 27 AUG 2001 12:45:00PM Mark Watford wrote: ===
{{tag>"AREV Specific"}}
I'm trying to add a line of data to a variable then returning the answer in a message. For example:
Y='
For X=1 To 10
If @record=' Then
Y=Y + 'Test'
End
Next X
Call Msg(Y,'A','','')
I know that this doesn't work. Could someone help me with the code to have a result such as Y=Test':@VM:'Test':@VM:etc
Thanks,
Mark
----
=== At 27 AUG 2001 01:00PM WinWin/Revelation Technical Support wrote: ===
Mark-
Try
Y='
For X=1 To 10
If @record=' Then
y=Test'
End
Next X
Call Msg(Y,'A','','')
Although it may not display correctly in MSG
----
=== At 27 AUG 2001 02:16PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote: ===
Your line of code
Y=Y + 'Test'
will not resolve because 'Test' is non-numeric. Use
Y=Y : 'Test'
or if Y is assigned
Y := 'Test'
Someone's been using VB or Delphi too often we suspect .
[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 27 AUG 2001 02:33PM Mark Watford wrote: ===
That was what I needed. Thanks alot. I still don't fully understand how that works but it solved my problem. Thanks again.
Mark
----
=== At 27 AUG 2001 03:33PM Don Miller - C3 Inc. wrote: ===
My suspicion is that he doesn't know string operators (concat, etc.) or the question wouldn't have surfaced. Or RTFM for AREV. Now OI heh, heh, heh that's a little different .
Don
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=B46CF09BC5A0F4A085256AB5005C02FF|View this thread on the forum...]]