The answer is simple:
You cannot put RCinclude data into a variable.

RCinclude however is interpreted, so - why not make a little change to the
routine that writes the file, like this:

file: /bla/messages.txt
<RC$nbr = 0>

Now if the file reads that, instead of just the 0, you have the variable RC$nbr
available anywhere below that line.

If you cannot change the app that writes the file, you can either use a cgi
call to read it or use ASP Script.

Sambar Script is not designed to give access to the file system, since it 
one of
it's primary uses, is the administration interface. It's a design descision.

At 19:17 16-10-01, you wrote:
>i explain what i want to do:
>
>RC$nbr is equal at RC$chaine.txt (a file who contain a number)
>
>if RC$nbr is equal at zero, then i display "no message"
>if RC$nbr is not equal at zero, then i not display "no message" but i
>continu the reste of the page
>
>Mika.
>
>----- Original Message -----
>From: "Peter" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, October 16, 2001 12:59 PM
>Subject: Re: [sambar] script
>
>
> > <RCif RC$nbr = 0>
> > <RC$nbr ! 0>
> > <RCinclude/folder/chaine.txt>
> > <RCelse>
> > No message
> > <RCendif>
> >
> > ----- Original Message -----
> > From: "Mika" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 16, 2001 12:52 PM
> > Subject: Re: [sambar] script
> >
> >
> > > zero
> > >
> > > but the problem is to run <RCinclude....> in a <RC$foo = value>.
> > > i don't find a solution to do that...
> > >
> > > Mika.
> > >
> > > ----- Original Message -----
> > > From: "Peter" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 16, 2001 12:36 PM
> > > Subject: Re: [sambar] script
> > >
> > >
> > > > O or NULL?
> > > > ----- Original Message -----
> > > > From: "Mika" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, October 16, 2001 12:33 PM
> > > > Subject: Re: [sambar] script
> > > >
> > > >
> > > > > i want to display "No message" when the file.txt is equal at 0
> > > > >
> > > > >
> > > > > Mika
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Bastiaan" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, October 16, 2001 12:17 PM
> > > > > Subject: Re: [sambar] script
> > > > >
> > > > >
> > > > > > Hi Mika,
> > > > > >
> > > > > > Is this what your looking for?
> > > > > >
> > > > > > <RC$nbr = <RCinclude /folder/RC$chaine.txt>>
> > > > > > <RCif RC$nbr = NULL>
> > > > > >    No message
> > > > > > <RCendif>
> > > > > >
> > > > > > greetings,
> > > > > > Bastiaan
> > > > > >
> > > > > >
> > > > > > Mika wrote:
> > > > > >
> > > > > > > Hi all.
> > > > > > >
> > > > > > > I have little problem. I would like to do something like that :
> > > > > > >
> > > > > > > <RC$nbr = <RCinclude /folder/RC$chaine.txt>>
> > > > > > >  <RCif RC$nbr = 0>
> > > > > > >   No message
> > > > > > >  <RCendif>
> > > > > > >
> > > > > > > but this don't run. Someone know the solution of this problem?
> > > > > > >
> > > > > > > Mika.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> > --------------------------------------------------------------------------
> > > > > ------
> > > > > > > For unsubscription of this list send an email to
> > [EMAIL PROTECTED]
> > > > > with email
> > > > > > > data containing unsubscribe emailadd sambar
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> > --------------------------------------------------------------------------
> > > > > ------
> > > > > > For unsubscription of this list send an email to
>[EMAIL PROTECTED]
> > > > with
> > > > > email
> > > > > > data containing unsubscribe emailadd sambar
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> > --------------------------------------------------------------------------
> > > > ------
> > > > > For unsubscription of this list send an email to [EMAIL PROTECTED]
> > > with
> > > > email
> > > > > data containing unsubscribe emailadd sambar
> > > > >
> > > >
> > > >
> > >
> >
> > --------------------------------------------------------------------------
> > > ------
> > > > For unsubscription of this list send an email to [EMAIL PROTECTED]
> > with
> > > email
> > > > data containing unsubscribe emailadd sambar
> > > >
> > > >
> > >
> > >
> > >
> >
> > --------------------------------------------------------------------------
> > ------
> > > For unsubscription of this list send an email to [EMAIL PROTECTED]
>with
> > email
> > > data containing unsubscribe emailadd sambar
> > >
> >
> >
> > --------------------------------------------------------------------------
>------
> > For unsubscription of this list send an email to [EMAIL PROTECTED] with
>email
> > data containing unsubscribe emailadd sambar
> >
> >
>
>
>
>--------------------------------------------------------------------------------
>For unsubscription of this list send an email to [EMAIL PROTECTED] with 
>email
>data containing unsubscribe emailadd sambar

____________________________________________________

</MELVYN>

void wakeup()
{
         for(long int cuppajava;drink();cuppajava++);
}

--------------------------------------------------------------------------------
For unsubscription of this list send an email to [EMAIL PROTECTED] with email
data containing unsubscribe emailadd sambar

Reply via email to