comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Defining Integer Field in a Structure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Defining Integer Field in a Structure [message #27730 is a reply to message #27728] Thu, 01 November 2001 14:27 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I am getting confused by David and JD. Isn't all you want is this:

my_str = {field_1: 0s, field_2: 'Something_else'}

The only problem I see is that FIELD_1 is not going to be limited to
1...4 range, any valid integer (or any numeric type, for that matter)
can be used to assigne the value of FIELD_1. If you want it to be in
1...4 range, a check for that will have to be implemented.

When you pass the structure from one pro to another, they can read and
change FIELD_1 as required, as long as the entire MY_STR was passed.

Cheers,
Pavel

Brian Bell wrote:
>
> Is there a way to define a field within a structure whose type is
> integer? In my case, I want the field to be any integer from 0 to 4.
> I know you can assign an actual integer to the field, but I don't want
> to do this because I want the field value to change within certain
> procedures and to return that value to the procedures calling it. I
> would appreciate any help you might be able to offer.
>
> Thanks,
>
> Brian
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: FSFC/IDL5.5 installation
Next Topic: RSI, Mac and Tru64

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 06:01:08 PDT 2025

Total time taken to generate the page: 1.59869 seconds