Alpha Video Training
Results 1 to 4 of 4

Thread: Multistate Buttons - Variable Declaration

  1. #1
    Clifford Rathkopf Jr.

    Default Multistate Buttons - Variable Declaration

    Non programmer; trying to learn ins and outs of A5 in spare time.

    Topic: Multistate Buttons, A to Z for name selection, in "Customer Base" form, "Invoice" db that ships with Alpha 5.

    Problem: I cannot duplicate code (the X basic script attached to the "Action" on the multistate buttons) to make this concept work in a form in a db I have created. I am quite sure that the problem lays in not declaring a variable. In the Customer Base form of "Invoice", I see reference to a "Customer Report" variable, and also in the properties fields of the individual buttons, I see reference to a "LTR" variable.

    Question: where are these variables reported/located? I understand the logic of the variables, but I would like to see precisely how the variables are created and stated, so I can follow the logic of the buttons' working.

    Many thanks for any clues. Cliff Rathkopf

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Bowling Green, KY

    Default RE: Multistate Buttons - Variable Declaration

    Your use for the variable determines the place to declare/create the variable.
    Variables can be created on forms, browses, reports, etc, or be defined for tables and sets, and be available: (as I understand them)

    global-from then on, in all other layouts, etc
    session - for the duration of the current session
    layout - only available to the current form, etc
    local - only available in the current calculation.

    I'm sure someone else can explain it better.

  3. #3
    Jim Rowlen

    Default RE: Multistate Buttons - Variable Declaration

    You can declare these in the form designer. With the form in design mode, click on "Form" on the nem bar. Select Variables. (Calculated fields are also definined right aobve that). You can also do this in browses and reports. If using the same variables as on another form, you can highlight all the variables by clicking on the row selsctor on the left side of these, click and move the moused down so all desired are highlighted, and then click on "Copy". On the form you want to copy the variables to, open the variable definiation box, click on the first open box, then click on "Paste"

  4. #4
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000

    Default RE: Multistate Buttons - Variable Declaration

    Open the CustomerBase form in design mode.

    Choose Form off the top menu, then variables off the dropdown list.

    You'll see that this is where the variable referenced in the properties of the multistate button is declared.

    -- tom

Similar Threads

  1. Multistate & Radio Buttons
    By Tom Cone Jr in forum Code Archive
    Replies: 1
    Last Post: 05-16-2005, 03:18 PM
  2. Function declaration accepts VB type as well
    By Marcel Kollenaar in forum Alpha Five Version 5
    Replies: 2
    Last Post: 07-16-2004, 01:11 AM
  3. Global variable declaration
    By Jesse Sanders in forum Alpha Five Version 4
    Replies: 6
    Last Post: 07-18-2001, 03:18 PM
  4. HTML Declaration Conflict in Reports
    By Ken Ashworth in forum Alpha Four Version 6 and Prior
    Replies: 1
    Last Post: 10-10-2000, 01:29 PM
  5. Multistate buttons using keyboard?
    By Jake Vuckovic in forum Alpha Five Version 4
    Replies: 11
    Last Post: 04-25-2000, 06:18 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts