[Solved] Split a string into parts

I assume that your expected output is bye see you.If I understood correctly then following methods can be used to get the desired output: In this string splits into an array(splits()) with delimiter ” ” and find index of bye (j)and you(k) in the array then using a for loop to get strings in the … Read more

[Solved] Replace Function – vb.net [closed]

don’n know exactly what do you want but below 2 code snippets can help you: 1.just use Replace: ‘remove tab characters Dim outString as String = inString.Replace(Constants.vbTab, “”) or ‘remove spacec haracters Dim outString as String = inString.Replace(” “, “”) 2.use an Split then use Replace in a loop through resulted array by Split: ‘split … Read more

[Solved] VB6 to VB.NET conversion (Syntax : Print to StreamWriter/Reader)? [closed]

The ampersand, &, is the concatenation character for vb.net. Although the plus sign will usually work, if numbers are involved you could get unexpected results. Streams must be disposed to released unmanaged resources. Using…End Using blocks take care of this for us. I made filePath a class level variable because it is used in more … Read more

[Solved] How to set variable to a huge number

All data types are stored as bits, and there is a maximum number that most can hold. Learn about the data types and their limitations from MSDN:https://msdn.microsoft.com/en-us/library/47zceaw7.aspx Also see this answer:Is there any big integer class for Visual Basic .NET (128 or more bits)? 0 solved How to set variable to a huge number

[Solved] C# -> RaiseEvent in VB.Net [closed]

As a matter of fact you’re not trying to raise an event, but subscribe to one. The IntelliSense error that you get when converting that code to VB.NET is unfortunately a bit misleading. In terms of events, C#’s += operator is equal to Delegate.Combine() which adds another delegate to an event’s subscribers list (list of … Read more

[Solved] I need to join 2 databases, with 2 tables each

With a UNION ALL you can get 1 combined resultset from 2 selects. Then you can group that and SUM the amounts per date. So you’re probably looking for something like this: select q.ID, q.Name, nullif(sum(case when q.Date=”2018-05-01″ then q.Amount end), 0) as “5/1/2018″, nullif(sum(case when q.Date=”2018-05-02” then q.Amount end), 0) as “5/2/2018” from ( … Read more

[Solved] How to write a pseudo Code [closed]

Pseudo code is just a way to express the intent of the program without being syntactically correct. An example could be: print “What is your name” read input from user print “Hello ” + user input Another example for withdrawing money from an ATM: if the selected account’s balance is greater than the requested amount … Read more

[Solved] ASCII to Base32

The value in txtbox.Text is a string which can’t be automatically converted to a byte array. So the line Dim DataToEncode As Byte() = txtbox.Text can’t be compiled. To get the ASCII representation of a string use the System.Text.Encoding.ASCII.GetBytes() method. Dim DataToEncode As Byte() = System.Text.Encoding.ASCII.GetBytes(txtbox.Text) Also strings in VB.Net do not store ASCII values, … Read more

[Solved] How to remove the actual item in my ArrayList

Joël, Your code uses a loop unnecessarily. You just need one line of code to remove the item. Try this: Public Sub Effacer_etu() Try _listeEtu.Remove(_etudiant) Catch ex As Exception MsgBox(ex.Message) End Try End Sub You will get the same result without the unnecessary looping. solved How to remove the actual item in my ArrayList