Vbs msgbox. How do I create custom buttons? [closed] - vbscript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Ok, I'm trying to make a small rpg as a small project in vbs. What I'm after is a msgbox with 5 buttons: attack, skils, magic, run, help.
My knowledge of vbscript is quite minimal, so you may need to explain.

You cannot easily do that with VBScript. (Wouldn't it be nice if you could do something like choice = MsgBox("Please select my next action", array("attack", "skills", "magic", "run", "take", "help"))).
But you can do the good old create-an-IE-instance-with-choices-hack. You can find examples and explanations on The Scripting Guys' Blog or on the site of Rob van der Woude.
Ninja edit: While you are looking at blending HTML code with VBScript, you should checkout this article about HTA's. I think this is just what you are looking for if you want to fiddle around with VBScript and need a GUI to make it interactive.

Related

How to convert [u8] to [u32]? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last year.
Improve this question
I wanted to embed an image to my binary and used the "include_bytes" macro. The GUI library I wanted to use only accepts [u32] for input and the said macro produces only [u8].
How do I convert a [u8] to a [u32]? I've seen some in the internet but the explanations are a bit too technical for me (I'm only self-taught). There were several options that I saw like bitwise and a method in "u32" from the standard library. Anyone can give an actual code on how to do it? Like study it from there in case I will need it for other files in the future. Thank you. I almost always just understand things via code coz I'm not aware of many technical terms, algos, etc.
using .map(Into::<u32>::into)
fn main() {
assert_eq!([0_u8, 1_u8].map(Into::<u32>::into), [0_u32, 1_u32]);
}

What do you call this kind of design? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I don't know what to search for about this kind of design. I will use it on my app for the empty state, but I'm getting trouble searching. hope you can help me guys. Thank you :)
Well the design type is "minimalist" or "modern" I'd say. If you are looking for a specific file format or something I think you'd be looking for SVGs (Scalable Vector Graphics).
From trial and error, the best search queries are along the lines of "Abstract Minimalist" or "Contemporary Art". Agreed, it is difficult to express to a computer what image you are trying to find.

Combo Box Boolean in Visual Basic [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm on visual studio and I have trouble doing some boolean on Visual Basic for a Combo Box Boolean. I am using Visual Studio btw. I tried to add the following:
if ClientBox.ValueMember() = "Agentleader1 (Leader)" Then
But it wouldn't work.
My program is a basic Contact-Us form for a person to fill out. A field (the combo-box field, called: clientbox) is a combo-box to where you can select which member of the whole group you want to send the contact-form to. Which is a problem. I'm very sorry I can't give a sample of the code. And btw, I just started C++ please don't give complex answers and maybe add a few annotations so I can understand. Please comment this question if I have not explained enough about my program! BTW, please no C# answers.
I found a solution to my problem, if anybody is wondering here it is, sorry for my amateur-ness! This actually kinda is a better answer than anything I could have come up with (except the fact that I found this answer by myself:
if ComboBox.SelectedItem().Equals("any choice of one of the items") = True Then
'execute command!
The above was the syntax, I got an example of my code below:
if ClientBox.SelectedItem().Equals("Agentleader1 (Leader)") = True Then
TEA = "****" 'That's my email!
Hope this helped to anybody that couldn't figure out how to find whether a specified item that is selected in a certain combo-box is selected!
is that exactly how it is written in your code? the single '=' is an assignment operator... you need '=='

Prawn: how to remove all borders from a table? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm working with Prawn gem and creating a table. I want to remove all its borders. I can't find this facility in the documentation.
How do I do that?
Here is the documentation for the prawn gem tables.
According to the "Constructor Details" section, you can pass a variety of :border_<x> options to the constructor... I'd suggest trying to pass a value of :border_width => 0 to your table constructor. (note: not tested - try it yourself and see what happens)

Following programming styles -- update poor adherence? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have a project I am working on that is written in Python. The variable/class/function/everything names do not adhere to the Python style guide.
example: a variable might be called myRandomVariable instead of the proper: my_random_variable
My question is, is it worth combing through all the code (around 10,000 lines) to fix all the naming convention problems or should I just say, 'the heck with it -- it works'?
Thanks
Edited to give example
Just because there is a Python style guide, it does not mean that all Python code should adhere to it. The most important thing to consider in a code base is that it's consistent with itself, at LEAST on a per-file basis, preferably across the project!
I would vote for your second option. They are just styles. Everyone will have their own style. You don't need to be in compilance with defined styles to say your product is great.

Resources