• Member Avatar for xrjf
    xrjf

    Replied To a Post in Differential Directory, indexing method

    Just a quick update for anyone interested: I have revisited and significantly improved the code, aiming for a more professional structure and better performance. The updated version avoids freezing the …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Differential Directory, indexing method

    I've just made an update because some records weren't being added properly. The issue was that the form didn't take into account that the register field (in the call to …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Differential Directory, indexing method

    "Just to clarify a previous mistake: the efficiency should be K × N × log₂(N), not K × log₂(N) as I initially wrote."
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Differential Directory, indexing method

    As an illustration, consider the theoretical lower bound for comparison-based sorting, as stated by Donald Knuth in The Art of Computer Programming: K × log₂(N). I developed a simple method …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Differential Directory, indexing method

    For example, as Donald Knuth points out in The Art of Computer Programming, the theoretical lower bound for comparison-based sorting algorithms is K × log₂(N). I developed a very simple method that …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Differential Directory, indexing method

    About DiDi DiDi (Differential Directory) was originally developed as part of my thesis project in the early 1990s. The name bears no relation to the more recent Chinese ride-sharing company. …
  • Member Avatar for xrjf
    xrjf

    Published Differential Directory, indexing method

    **Features:** * Retrieves the differentiating bit of a key with respect to the previous one and stores only this position in the index. * With at most one single disk …
  • Member Avatar for xrjf
    xrjf

    Began Watching Differential Directory, indexing method

    **Features:** * Retrieves the differentiating bit of a key with respect to the previous one and stores only this position in the index. * With at most one single disk …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.Net & Crystal Report 2013

    I am happy that you resolved the issue. Regards.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.Net & Crystal Report 2013

    Try and verify there are no nulls, rpt.SetDataSource(ds) rpt.Subreports("YourSubreport.rpt").SetDataSource(ds_detspk) Also, there are some answers from some people that had the same problem [Here].(https://stackoverflow.com/questions/7525467/crystal-report-object-reference-not-set-to-an-instance-of-an-object)
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.Net & Crystal Report 2013

    Of course, 'MySubReport.rpt' in `rpt.Subreports("MySubReport.rpt").SetDataSource(ds_detspk.Tables(0))` should be replaced by the name you have given to your subreport.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.Net & Crystal Report 2013

    How many rows are there in ds.Table(0)? What are the fields in each row?
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.Net & Crystal Report 2013

    I ment: rpt.SetDataSource(ds.Tables(0)) rpt.Subreports("YourSubreport.rpt").SetDataSource(ds_detspk.Tables(0))
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.Net & Crystal Report 2013

    Try: rpt.SetDataSource(ds.Tables(0)) rpt.Subreports("YourSubreport.rpt").SetDataSource(ds.Tables(1))
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.Net & Crystal Report 2013

    Lets see if this link does for you [Click Here](http://vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm)
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.Net & Crystal Report 2013

    There is an example [Here](http://vb.net-informations.com/crystal-report/vb.net_crystal_report_subreport.htm)
  • Member Avatar for xrjf
    xrjf

    Began Watching VB.Net & Crystal Report 2013

    hi everyone can you give an example of coding in vb.net vs2010 how to make a report in crystal report 2013 with sub report thanks for advanced
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in alternative to performclick to do things in background

    A better aproach would be: Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Try Dim file As System.IO.StreamWriter Dim path As String = Application.StartupPath + "\test.txt" …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in alternative to performclick to do things in background

    Once a form has saved the text to a file, another form can read the data.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in alternative to performclick to do things in background

    For example, to write a text file just do: Sub WriteFile() Dim file As System.IO.StreamWriter file = My.Computer.FileSystem.OpenTextFileWriter("c:\test.txt", True) file.WriteLine("Here is the first string.") file.Close() End Sub So, writing to …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in alternative to performclick to do things in background

    One way to share data between, for example, two forms can be writing and reading a file in disk. [Here](https://www.tutorialspoint.com/vb.net/pdf/vb.net_text_files.pdf) is a tutorial if needed.
  • Member Avatar for xrjf
    xrjf

    Began Watching alternative to performclick to do things in background

    Hi, I'm searching for a way that let run a event without need, that specific form to be open, and also save thing. I explain better, the performclick will only …
  • Member Avatar for xrjf
    xrjf

    Endorsed Schol-R-LEA

  • Member Avatar for xrjf
    xrjf

    Endorsed rproffitt

  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.net 2 sound cards playing different sounds.

    The default device is DeviceNumber = -1.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.net 2 sound cards playing different sounds.

    Remember to dispose the audio objects, otherwise there could be leaks of memory. Also, could you mark as solved if you think so? Many thanks.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Checking if in current combobox index (for next loop) a number is >=1 <= 10

    Perhaps, you may try my guess of what you want: Const maxVal As Integer = 30 Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick Try Dim value As …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.net 2 sound cards playing different sounds.

    You are welcome. I can change the audio file, click the Play button again and it works for me. Also, I found that BtnStop_Click() should test for `Nothing`: Private Sub …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.net 2 sound cards playing different sounds.

    Sorry about that. I forgot the device number: Private Sub BtnPlay_Click(sender As Object, e As EventArgs) Handles btnPlay.Click Try If outDev Is Nothing Then outDev = New WaveOut() outDev.DeviceNumber = …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.net 2 sound cards playing different sounds.

    Yes, devnum is the sound card you will be using, but if I were you, I would stick to the sample. After Googling this is what it is said about …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.net 2 sound cards playing different sounds.

    Here is a sample out from the documentation translated into VB.NET. Imports System.ComponentModel Imports NAudio.Wave Public Class Form1 Dim devNum As Int32 Dim sFile As String Dim reader As AudioFileReader …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.net 2 sound cards playing different sounds.

    Basically, it would go like this: Dim devNum As Int32 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Try Dim i As Int32 For i = -1 To …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.net 2 sound cards playing different sounds.

    Also, you may consider reading NAudio's document "Understanding Output Devices" [Here](https://github.com/naudio/NAudio/blob/master/Docs/OutputDeviceTypes.md)
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in VB.net 2 sound cards playing different sounds.

    Perhaps this link may help you. [Click Here](https://stackoverflow.com/questions/62150375/how-to-select-correct-sound-output-device-in-the-naudio-after-added-removed-a-s)
  • Member Avatar for xrjf
    xrjf

    Began Watching VB.net 2 sound cards playing different sounds.

    I am using visual studio / basic 2019. using the windows media to play sounds (WMPLib.WindowsMediaPlayer). It works great, I can play multiple sounds etc. However what I realy want …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Checking if in current combobox index (for next loop) a number is >=1 <= 10

    Be aware that all string or numeric comparisons must be between the same type: 1. Number compared to Number or 2. String compared to String. Never Number compared to String, …
  • Member Avatar for xrjf
    xrjf

    Began Watching Checking if in current combobox index (for next loop) a number is >=1 <= 10

    Hi, I like to ask for a clarification about it. I have combobox.items(i) that go trough a for next loop for each index I need to check if its content …
  • Member Avatar for xrjf
    xrjf

    Endorsed Schol-R-LEA

  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Timer tick doesn't fire another form button click event

    If needed a countdown you could do the following and get the countdown in `Label10`: Const maxVal As Integer = 30 Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Timer tick doesn't fire another form button click event

    Why not just supress the traling `.toString` and set value as an `Integer`? Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick Dim value As Integer = CInt(Label10.Text) If …
  • Member Avatar for xrjf
    xrjf

    Began Watching Timer tick doesn't fire another form button click event

    Hi, like title, I have a timer, that when reach 0 will fire event on another form, then timer restart but when reach 0 nothing happen. how can I achieve …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Update previously stored list of datetimes in a combobox, in a cycle for

    Time format is "HH:mm:ss" and not "hh:mm:ss" so I think you should change instruction: Dim d2 As DateTime = DateTime.ParseExact(parsedate.ToString, "dd/MM/yyyy hh:mm:ss", System.Globalization.CultureInfo.CurrentCulture) into: Dim d2 As DateTime = DateTime.ParseExact(parsedate.ToString, …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Update previously stored list of datetimes in a combobox, in a cycle for

    You are welcome. Look at the contents of `parsedate`, most probably it is formated as "MM/dd/yyyy hh:mm:ss" and not as "dd/MM/yyyy hh:mm:ss" as expected.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Update previously stored list of datetimes in a combobox, in a cycle for

    I am not sure what you are trying to do. At a guess, you may replace line #6 by: ComboBox3.Items(i) = (365 - dysdiff).ToString + " Days" ComboBox3.SelectedIndex = i
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Update previously stored list of datetimes in a combobox, in a cycle for

    You may add a `timer` and in `Timer.tick`event call to `Button5_Click(sender, e)`. BTW, number 365 in line#7 is numeric and `dysdiff`is a string, so it's not possible the substraction to …
  • Member Avatar for xrjf
    xrjf

    Began Watching Update previously stored list of datetimes in a combobox, in a cycle for

    Hi, how can I make sure that all the datetime stored previously by user input will be updated in a cycle for? I explain better the structure Combobox2 <----- is …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Clean all my settings VB.NET

    Let's see if (I am right and) I can explain the difference between `My.Settings.Reload` and `My.Settings.Reset`. Reload recovers the values from design time, i.e., the values you enter manually in …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Clean all my settings VB.NET

    Are you asking for this?: For Each prop As System.Configuration.SettingsProperty In My.Settings.Properties prop.DefaultValue = "" Next
  • Member Avatar for xrjf
    xrjf

    Began Watching Clean all my settings VB.NET

    Hi, how can I clean all saved settings in my.settings ? Do I need only to put my.settings.[name].clear() or a My.settings.reset() can do a good job for all the user …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Problems in sorting element inside an array of object.

    Try renaming `size`, for example `sz`.

The End.