Solved

Displays a dialog box containing multiple input fields..

Posted on 2013-05-24
6
2,222 Views
Last Modified: 2013-05-24
in Delphi XE4 iOS Firemonkey mobile Application I need to show a dialog box with multiple input fields, here is my code, it always shows the dialog box with ONE input field

const
     S : array [1..2] of string = ('ContactName' , 'ContactNumber');
var
     V : Array [1..2] of string;
begin
     if InputQuery('Contact Details', S, V, nil) then
     begin
          // Do something ...
     end;
end;

Open in new window



I tried also

if InputQuery('Contact Details', S, V) then {removed the last parameter}

Open in new window


I got same result.

any Ideas?

Thanks in advance.
0
Comment
Question by:i7m
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 27

Expert Comment

by:Sinisa Vuk
ID: 39194212
Try this one:
var
  Vars : array of String;
begin
  SetLength(Vars,2);
  //default
  Vars[0] := '';
  Vars[1] := '';

  if InputQuery('Contact Details', ['ContactName' , 'ContactNumber'], Vars, nil) then
  begin
    ....

Open in new window


http://docwiki.embarcadero.com/Libraries/XE2/en/Vcl.Dialogs.InputQuery
Think that string array must start from 0 index (Array [0..1] of...)
0
 

Author Comment

by:i7m
ID: 39194242
Tried and got same result.

It displayed the the array item [1] only
0
 
LVL 27

Expert Comment

by:Sinisa Vuk
ID: 39194318
Is this code works on Win platform? Could be Firemonkey issue.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:i7m
ID: 39194393
Yes Works Okay on Win32 Platform
Untitled.png
0
 
LVL 27

Accepted Solution

by:
Sinisa Vuk earned 500 total points
ID: 39194488
Then must be Firemonkey issue on iOS platform. Maybe you can ask on Embarcadero forum.
0
 

Author Comment

by:i7m
ID: 39195180
I posted it as a bug on Embarcader's Quality Center. and waiting their. Thanks for your help.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month7 days, 17 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question