Alpha Video Training
Results 1 to 4 of 4

Thread: ui_get (a numeric value)?

  1. #1
    Jeff Moses
    Guest

    Default ui_get (a numeric value)?

    Anyone know how to use a ui_get_(stuff)_box to let the user enter numeric value? I have tried all sorts options but keep getting a variable missmatch error.
    Tnaks,
    Jeff

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

    Default RE: ui_get (a numeric value)?

    You're probably not manipulating your result string from ui_get_number().

    Use the

    Result String = ui_get_number( Title, Caption Text [, Default String © [ , Format String]])

    as shown in the documentation. Then either say

    myvariable = val(result string)-----(for your number)

    or use val(result string) where you need the number.

  3. #3
    Jeff Moses
    Guest

    Default RE: ui_get (a numeric value)?

    FYI, Thanks Stan. Anyone else interested, here is what worked.
    x=val(ui_get_number("PO Search:","Which PO?"))

  4. #4
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default RE: ui_get (a numeric value)?

    Jeff,

    I would amend

    x=val(ui_get_number("PO Search:","Which PO?"))

    to be

    x=val(ui_get_number("PO Search:","Which PO?","0","00000"))

    where the number of 0's in the last "00000" is equal to the number of digits possible in your PO number. This will prevent a user from entering characters, symbols, letters, signs, and decimals. As is if a user enters characters, the val() function will return an error.

    Stan

Similar Threads

  1. Keeping numeric field numeric upon importing
    By David Farr in forum Alpha Five Version 5
    Replies: 2
    Last Post: 03-19-2003, 10:01 AM
  2. ui_get (s)
    By Richard Froncek in forum Alpha Five Version 5
    Replies: 12
    Last Post: 03-15-2003, 12:43 PM
  3. Strip Numeric
    By Peter.Greulich in forum Alpha Five Version 4
    Replies: 13
    Last Post: 10-13-2001, 10:01 AM
  4. Numeric 0 vs. numeric blank
    By John Gamble in forum Alpha Five Version 4
    Replies: 26
    Last Post: 01-30-2001, 05:53 PM
  5. Matching ui_get to field?
    By Keith Hubert in forum Alpha Five Version 4
    Replies: 8
    Last Post: 01-08-2001, 07:42 AM

Bookmarks

Posting Permissions

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