VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



String Maker V1.1

by AlGen Technologies (2 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

Updated to v1.1, Fixed few bugs.
I always feel I loose a lot of time formating my msgbox strings.
String Maker is a program that formats your "normal text" into
a variable string usable in visual basic.
Lets say, for example, you want a msgbox to show this:
-------------------------------------
Warning:
The "input" parameters found
in the data size field can generate a
general protection error
-------------------------------------
String maker will format it for you to just copy and paste like this:
MyString = "-------------------------------------" & vbNewLine
MyString = MyString & " Warning:" & vbNewLine
MyString = MyString & "The " & chr(34) & "input" & chr(34) & "parameters" & vbNewLine
MyString = MyString & "found in the data size" & vbNewLine
MyString = MyString & "field can generate a" & vbNewLine MyString = MyString & "general protection error" & vbNewLine
MyString = MyString & "-------------------------------------"
Then you could use it like:
MsgBox mystring
It also has the capability to create SQL table strings:
MyString = "CREATE TABLE [tblThisTable] ("
MyString = MyString & "[fldBinary] Binary(20),"
MyString = MyString & "[fldBit] BIT,"
MyString = MyString & "[fildInteger] Short,"
MyString = MyString & "[fldText] Text(240)"
MyString = MyString & ")"
All you have to do is execute the string
like dbobject.execute mystring.
And, as always, it also shows the use of MDI projects, menus,
tray icon, popup menu in the tray icon, selections, etc...
You are allowed and encouraged to continue this project to grow
its capabilities... just keep me informed.
Thanx to the guy of the tray area control.
Note that you must use the exit menu command to close the program,
since pressing the X button in the window's controls will just send
the program to the tray area... Pretty much like audiogalaxy.
-Fongus

Inputs
The text to be formated
Assumes
Updated to v1.1, Fixed few bugs. I always feel I loose a lot of time formating my msgbox strings. String Maker is a program that formats your "normal text" into a variable string usable in visual basic. Lets say, for example, you want a msgbox to show this: ------------------------------------- Warning: The "input" parameters found in the data size field can generate a general protection error ------------------------------------- String maker will format it for you to just copy and paste like this: MyString = "-------------------------------------" & vbNewLine MyString = MyString & " Warning:" & vbNewLine MyString = MyString & "The " & chr(34) & "input" & chr(34) & "parameters" & vbNewLine MyString = MyString & "found in the data size" & vbNewLine MyString = MyString & "field can generate a" & vbNewLine MyString = MyString & "general protection error" & vbNewLine MyString = MyString & "-------------------------------------" Then you could use it like: MsgBox mystring It also has the capability to create SQL table strings: MyString = "CREATE TABLE [tblThisTable] (" MyString = MyString & "[fldBinary] Binary(20)," MyString = MyString & "[fldBit] BIT," MyString = MyString & "[fildInteger] Short," MyString = MyString & "[fldText] Text(240)" MyString = MyString & ")" All you have to do is execute the string like dbobject.execute mystring. And, as always, it also shows the use of MDI projects, menus, tray icon, popup menu in the tray icon, selections, etc... You are allowed and encouraged to continue this project to grow its capabilities... just keep me informed. Thanx to the guy of the tray area control. Note that you must use the exit menu command to close the program, since pressing the X button in the window's controls will just send the program to the tray area... Pretty much like audiogalaxy. -Fongus
Code Returns
Formated text
Side Effects
Non known
API Declarations
Non

Rate String Maker V1.1

Download String Maker V1.1

Download String Maker V1.1 (15 KB)

String Maker V1.1 Comments

No comments have been posted about String Maker V1.1. Why not be the first to post a comment about String Maker V1.1.

Post your comment

Subject:
Message:
0/1000 characters