Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Need so info on Action () (Real Studio getting started Mailinglist archive)

Back to the thread list
Previous thread: Date notation
Next thread: Get a dbrecord from a db recordset


RB Database   -   tom.russell transport.alstom.com
  Need so info on Action ()   -   amansfield1104 charter.net
   Re: Need so info on Action ()   -   Will Brokenbourgh
    RE: Need so info on Action ()   -   POIDINGER, Michael [JJRAU]

Need so info on Action ()
Date: 02.02.05 04:29 (Tue, 1 Feb 2005 21:29:50 -0600)
From: amansfield1104 charter.net
How can I do this in real basic.

sub test (xx,yy,zz) to pass info. All it we let me do is put one in.

I come from old Fortran and and basic. This object stuff seems to be
more trouble than it is worth.

Art

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

Re: Need so info on Action ()
Date: 02.02.05 06:00 (Tue, 1 Feb 2005 21:00:13 -0800)
From: Will Brokenbourgh
When you create a new method, there are fields for 'method name', 'return type', 'parameters', etc. In parameters, you need to enter the variables and their types like so:

xxx as integer, yyy as string, optional zzz as double

You'll then be able to pass parameters to the method.

HTH!

Will

----- Original Message -----
From: <email address removed>
To: <email address removed>
Sent: Tuesday, February 01, 2005 7:29 PM
Subject: Need so info on Action ()

How can I do this in real basic.

sub test (xx,yy,zz) to pass info. All it we let me do is put one in.

I come from old Fortran and and basic. This object stuff seems to be
more trouble than it is worth.

Art

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

RE: Need so info on Action ()
Date: 02.02.05 06:18 (Wed, 2 Feb 2005 16:18:08 +1100 )
From: POIDINGER, Michael [JJRAU]
>
> How can I do this in real basic.
>
> sub test (xx,yy,zz) to pass info. All it we let me do is put one in.

Could you be a bit more specific? put one what in where? Give a more
detailed description of what you are trying to achieve

I have a feeling that you are trying to add parameters to an action event in
a control?

Anyway, just to get up and running, open the code editor for the app object
that appears in your startup project, right mouse click in the attribute
list and select new method

A window will pop up which will ask for the name of the method, and then the
list of parameters, and then the return type (which, if filled in, will
create a function rather than a method). Note that RB is explicitly typed,
so you cannot have

sub test (xx,yy,zz)

you have to have (for example)

sub test (xx as Integer, yy as String, zz as Something)

fortran/basic procedures are similar to RB/OO methods/functions

>
> I come from old Fortran and and basic. This object stuff
> seems to be more trouble than it is worth.
>
> Art
>

Once you get the hang of it, you will never look back.

HTH
Mike
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>