comp.lang.ada
 help / color / mirror / Atom feed
* Help!!  (discriminated records)
@ 1993-05-01 22:51 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!darwi
  0 siblings, 0 replies; only message in thread
From: cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!darwi @ 1993-05-01 22:51 UTC (permalink / raw)


I would appreciate it greatly if someone would give me some help
with a problem I'm having..

The type declaration looks like this:

subtype Length_Range is Integer range 0..21;
private
   type Token(Length : Length_Range := 0) is
    record
       Text: String(1..Length);
    end record;
 Tok : Token;

I'm trying to assign a string called temp which contains ("THIS") 
to text...

I've tried:
            Tok(4).Text := temp;
            Tok(4).Text(1..4) := temp;
            Tok(4).Text(1..4) := temp(1..4);
            Tok.Text := temp;
              
  Unfortunately this is the Prof's specifications so I can't change
  anything....

  I'm using the Meridian 4.1.4 compiler..
 I would greatly appreciate it if someone/anyone could help....


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
                                Melonie Bennett  
                    	  melonie@bullen.gatech.edu
                       melonie@dekalb.dc.peachnet.edu 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-05-01 22:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-05-01 22:51 Help!! (discriminated records) cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!darwi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox