inputbox

how to use InputBox in c++builder with multiple values

╄→尐↘猪︶ㄣ 提交于 2020-01-03 03:34:10
问题 How can I use InputBox to make it take 3 Values. I can make it show just one value by using code: String input[3]; input[0]= InputBox("paied check", "the value", ""); any help? 回答1: InputBox() does not support what you are asking for. It is designed for single-value input only. InputQuery() supports multi-value input, but only in C++Builder XE2 and later, eg: String prompt[3] = {"value 1:", "value2:", "value 3:"}; String input[3]; if( InputQuery("paied check", EXISTINGARRAY(prompt),

VBA - select specific sheets within workbook to loop through

ⅰ亾dé卋堺 提交于 2020-01-03 02:48:05
问题 I have an excel workbook with a variable number of sheets. At the moment I am looping through all sheets and therein a specific column to search for figures above a certain threshold. Column and threshold are determined by inputboxes that need to be filled in by the user. If the figure in the column, let's say column "J" and row 10 is above threshold, row 10 is copied and pasted in a new created "summary" sheet etc. I am struggling at the moment with a specific selection of sheets. I don't

Prompting a user with an input box? [C++]

只愿长相守 提交于 2019-12-29 01:34:11
问题 My goal is to simply use a pop-up box to ask the user for an input. I've searched around quite a bit and pretty much all the results say that creating a messageBox is really easy: MessageBox (NULL, "Hello World" , "Hello", MB_OKCANCEL); But that creating a pop-up that takes input is more involved and there isn't a straight forward way to do it. All of the results I could find on Google were dated somewhere from 2001 to 2005. I guess I'm here asking if some more straight forward solution has

vb.net if inputbox is greater

☆樱花仙子☆ 提交于 2019-12-25 18:53:41
问题 I'm having trouble checking if input is less then or grater 3 characters. should i use if statement or while loop?. and also how to store all the data in listbox after inputbox entered: For Num = 1 To CInt(nudPassengers.Value) Dim userName As String if userName < 3 then InputBox("Whats your name? " & Num) Dim infoForm As New frmBooking infoForm.lstItinerary.Items.Add(userName) end if Next 回答1: Less than 3 characters If Username.Length < 3 Then End If String Manipulation Strings 来源: https:/

Focus window created by PowerShell script

╄→гoц情女王★ 提交于 2019-12-25 05:12:29
问题 I can display a simple Visual Basic inputbox from a PowerShell script like this: $null = [reflection.assembly]::loadwithpartialname("microsoft.visualbasic") $input = [microsoft.visualbasic.interaction]::inputbox($question, "bla", $text) However, the inputbox window does not get focus which remains with the PowerShell window. Is there a way to give focus to the inputbox window? 回答1: You could focus the InputBox from a job. For example: $null = [reflection.assembly]::loadwithpartialname(

Input box limit in VB

折月煮酒 提交于 2019-12-24 12:19:19
问题 a simple question: can I set the limit for an input through an input box in vb? When the user inserts a string larger than the database corresponding field, that's a problem obviously. Like the textBoxes have a MaxLength, is there a way to set a similar restriction to an inputBox? Thanks 回答1: Little easier than creating a custom class... Instead why not create a temporary string variable and assign it by your input box. . . then check the count in a do until loop... EX. Dim str As String =

Input box date range in vba?

放肆的年华 提交于 2019-12-24 05:27:11
问题 I have an excel file and in the first column (A) i have some dates like this: 17/10/2013 18/10/2013 19/10/2013 20/10/2013 21/10/2013 22/10/2013 The other columns contains some datas. I need create an input box that takes everything inside a date range. I mean; i click the button and it shows me a popup like: insert start date: 17/10/2013 (i can decide the date) insert end date: 20/10/2013 (i can decide the date) and then i can put a macro i've done. So my macro read only datas inside that

Jquery - Send only some value from a form

江枫思渺然 提交于 2019-12-23 23:19:27
问题 using the checkTL() function, i need to send to the server (for example) only the input value into div with class "sideon". So, in the example, i need to get (server side) only the value of inputside0 and inputside3. How is possible this? cheers 回答1: How about using AJAX? <form method="POST" action="./index.php?general=example3" name="addtl"> ... </form> and then: $(function() { $('form[name=addtl]').submit(function() { var dataToPost = $(this).find('.sideon :input').serialize(); $.post(this

Validating user input in inputbox

时间秒杀一切 提交于 2019-12-23 02:18:19
问题 When I run the following snippet, and enter an acceptable value, I get the desired result. do while len(strselect) = 0 'or strselect<>"1" or strselect<>"2" or strselect<>"3" strselect = inputbox ("Please select:" &vbcrlf&vbcrlf&_ "1. Add an entry" &vbcrlf&vbcrlf&_ "2. Remove an entry" &vbcrlf&vbcrlf&_ "3. Search for an entry" &vbcrlf, "Contact Book") if isempty(strselect) then wscript.quit() elseif strselect="1" then wscript.echo "You chose 1" elseif strselect="2" then wscript.echo "You chose

HTML: is input box default/calculated content height different across browsers

五迷三道 提交于 2019-12-22 06:49:42
问题 Let's say I have the following code .username { font-size: 30px; padding-top: 8px; padding-bottom: 8px; border: 2px solid #E0E0E0; } <input class="username" type="text" /> See live demo on http://jsbin.com/qudorugoguya/1/edit?html,css,output I understand that the total height = content height + padding-top + padding-bottom + (border-width x 2). http://www.w3.org/TR/CSS21/box.html#box-dimensions However, when the height property is not assigned a value, it seems like the calculated content