Author Topic: Variables and lines  (Read 4238 times)

AnonymousPostings

  • Newbie
  • *
  • Posts: 49
Variables and lines
« on: July 01, 2010, 07:44:02 AM »
In HyperNext Creator, If I wanted to put details into a variable, and I were to say want to put different phrases onto different line's E.G.
 
Alpha
Bravo
Charlie
Delta
 
Ect. Ect. But I wanted to put them into the Variable exactly like that (a phrase per/line), how would I go about doing it?
 
E.G. My current command, The question marks signify my confusion as to what would go there.
Put '???' into CallSigns
Since you can't physically put them on individual lines, as it errors, is there a command that you can put after each phrase that knows to put them per/line?
« Last Edit: January 01, 1970, 01:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 461
  • Here to help you
Re: Variables and lines
« Reply #1 on: July 01, 2010, 07:45:02 AM »
I'm not sure i fully understand your question but if you want to put text onto different lines use the following command

Code: [Select]
   Put "???" after CallSigns
so to obtain the list below do

Code: [Select]
   Put 'Alpha' into CallSigns
   Put 'Bravo' after CallSigns
   Put 'Charlie' after CallSigns
   Put 'Delta' after CallSigns

To check that CallSigns has the correct format simply put it into a multi-line field, eg

Code: [Select]
   Put CallSigns into field 1
There is also a PUT INTO command but it assumes the target variable already has sufficient lines

Code: [Select]
   Put 'Charlie' into line 3 of CallSigns
For further details see the PUT command in the built-in help  or the Language Reference PDF.
« Last Edit: January 01, 1970, 01:00:00 AM by Guest »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.