Search:

Type: Posts; User: Bear89

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Re: Opening main form at initiation of program

    Thanks so much Paul, just what I needed.
  2. [RESOLVED] Opening main form at initiation of program

    I've now nearly finished my project in Visual Studio. Currenlty when I start vs the current project loads but at the code level and I need to click on the Start button to open the Main form. For...
  3. Re: Managing missing properties in JSON response

    Yay, I've worked it out, I can bypass the empty iterations using:

    If IsNothing(service.explanation) Then
  4. Replies
    6
    Views
    973

    Re: Moving complete rows between DataGridViews

    Great, thanks tg, works! And now I can make the overall code move the data between rows, using copy and paste. But I still would love to be able to restore the direct paste function in my...
  5. [RESOLVED] Managing missing properties in JSON response

    I'm hoping someone can help with managing conditionally missing properties in my JSON response.

    Here is a typical response, where I will usually have several "id"s, some of which contain the...
  6. Replies
    6
    Views
    973

    Re: Moving complete rows between DataGridViews

    Thanks sapator, point noted and the empty string reference read, though I have content in the clipboard, and the method appears to work, though I have had difficulty splitting the clipboard contents....
  7. Replies
    6
    Views
    973

    Re: Moving complete rows between DataGridViews

    OK, thanks Peter, good tips.

    I have explored a little further, and I find that I can copy a data row to clipboard, and I can see, and split the clipboard content using


    Dim clipbd =...
  8. Replies
    6
    Views
    973

    Moving complete rows between DataGridViews

    I really can't find a good way to do this. I have two tables with identical columns, one for open orders (AcctDetailsTableAdapter), the second for completed orders (Acctdetails_UnpaidTableAdapter),...
  9. Replies
    6
    Views
    1,150

    Re: Dealing with empty rows

    Thanks ob and tg, I have solved it, was as ob suggested that the row was being deleted in a previous iteration and an update of the dg solved it. Great to have the help of the forum once again!
  10. Replies
    6
    Views
    1,150

    Re: Dealing with empty rows

    I’m not sure but it sort of makes sense that this might be possible, and the dg is bound to another table. When I run the loop with a break at this line the exception is thrown at the first time the...
  11. Replies
    6
    Views
    1,150

    Re: Dealing with empty rows

    I am trying options to detect the empty or null row so that the exception is not thrown. Obviously the syntax is not correct. So I need help in how to write a line which will detect this empty row so...
  12. Replies
    6
    Views
    1,150

    [RESOLVED] Dealing with empty rows

    I'm stumped on how to handle an empty row as I iterate through a collection. The problem code is:

    For Each datarowview In Grid2.View
    If Not IsDBNull(datarowview) And Not...
  13. Replies
    6
    Views
    912

    Re: Deserialising a JSON array - null values

    Thanks tg, thats perfect!
  14. Replies
    6
    Views
    912

    Re: Deserialising a JSON array - null values

    But I thought I was doing that with the ‘If medicalEvent.patient.status.code IsNot Nothing’ line - or should I be doing this another way? Do I use optional chaining or hasownproperty???
  15. Replies
    6
    Views
    912

    Re: Deserialising a JSON array - null values

    Thanks TG, the exception is:


    System.NullReferenceException: 'Object reference not set to an instance of an object.'

    and yes, you are correct, the elements are missing in the response, but not...
  16. Replies
    6
    Views
    912

    Deserialising a JSON array - null values

    Dear Guys,

    I'm hoping for some help with a conditional null value in a return message for a JSON nested array. Here is my code:


    For Each medicalEvent In...
  17. Re: Datepicker editing in WPF datagrid with MSAccess .mdb database

    Thanks Jm, at the moment no exception is being thrown, and I have tried a number of options but nothing is thrown. But the data of the row in question are simply not updated to the database when a...
  18. Re: Datepicker editing in WPF datagrid with MSAccess .mdb database

    OK thanks jm, I have checked the parent Access setting and it is set to No for the Date:Required field.
  19. Datepicker editing in WPF datagrid with MSAccess .mdb database

    Dear Guys,

    I have been developing a wpf application with a MS Access .mdb database. The pain window includes a range of textboxes from large data table, with 3 child tables to the main table, all...
  20. Replies
    13
    Views
    4,241

    Re: NullException on delete in WPF textbox

    OK, I have made some progress but would really love some help. First, it seems the datepicker can switch between normal and editable mode, and that influences whether it will accept new data....
  21. Replies
    13
    Views
    4,241

    Re: NullException on delete in WPF textbox

    I disagree. The difficulty here is getting wpf to accept data and this might still relate to a null issue or perhaps a related issue, very much related to the discussion so far and to the topic.
    ...
  22. Replies
    13
    Views
    4,241

    Re: NullException on delete in WPF textbox

    Thanks pg and jmc, I have allowed null values in the access database and these are now accepted, so excellent.

    I still have a problem though with date fields, which wont allow entries in my WPF...
  23. Replies
    2
    Views
    743

    Re: New JSON syntax - Solved!

    A very measured response from you, thanks jmc!
  24. Replies
    2
    Views
    743

    [RESOLVED] New JSON syntax - Solved!

    Guys, I have encountered a new type of JSON which I am unsure how to handle. The example I need to code to is:

    {
    "transactionId": [
    "izoz"]
    }


    The JSON Validator indicates this is a...
  25. Replies
    6
    Views
    1,080

    Re: JSON nested array - retrieving values

    Ah, I see it now, I just need to specify the index - eg m3 = participant.service(1)

    Thanks guys.
  26. Replies
    6
    Views
    1,080

    Re: JSON nested array - retrieving values

    Thanks Peter, perfect, now deserialises, but I still can't get the value -


    23/05/2022 9:13:26 PM : Name: Credicare Fund Limited

    23/05/2022 9:13:26 PM : Id: CHF

    23/05/2022 9:13:26 PM :...
  27. Replies
    6
    Views
    1,080

    Re: JSON nested array - retrieving values

    Hmm, I tried that before, and have gone back to it as this:


    Public Class GPRResponse
    Public Property participant As IEnumerable(Of participant)
    End Class

    Public Class...
  28. Replies
    6
    Views
    1,080

    JSON nested array - retrieving values

    I’m having difficulty extracting data from a particular JSON response which has nested arrays. I can easily access the first level data, but not the second.

    My declarations are:

    Public Class...
  29. Replies
    13
    Views
    4,241

    Re: NullException on delete in WPF textbox

    Thanks tg, so here is the update code:


    Public Sub UpdateTA()

    Try
    Dim PatientDataSet As Goldie.patientDataSet = CType(Me.FindResource("PatientDataSet"),...
  30. Replies
    13
    Views
    4,241

    Re: NullException on delete in WPF textbox

    No, not crashing, the exception is simply thrown when I try to access or save data from cells that have been deleted.
  31. Replies
    13
    Views
    4,241

    Re: NullException on delete in WPF textbox

    Thanks JMc, the reason I have shown no code is because there is none. These text boxes have no specific code added, ie they remain as they did at the start of the project. However, they are bound to...
  32. Replies
    13
    Views
    4,241

    NullException on delete in WPF textbox

    I have searched everywhere for a good solution to this problem but I can't find one. I have a range of controls in Datagridtables and textboxes on my WPF mainwindow, and when I delete any value I am...
  33. Replies
    4
    Views
    788

    Re: Retrieving values from an array

    Perfect, thanks tg and dday!
  34. Replies
    4
    Views
    788

    Re: Retrieving values from an array

    Well I was wondering if thats the case, because I had thought my syntax was OK, but may just be a string?
  35. Replies
    4
    Views
    788

    Retrieving values from an array

    I know this must be simple but I can't work it out. I have stored a range of data in an array, with variables according to the following construction, stored in a datagridtable:

    ...
  36. Replies
    5
    Views
    860

    Re: Deserialising a JSON array

    Excellent, thanks so much Karen and pd. In the end the List and other options didn't work pd as the need for deserialization and the need for full string to access each element were in conflict....
  37. Replies
    5
    Views
    860

    Re: Deserialising a JSON array

    If I try to do that with my current declarations I can't reach the array elements. For example, I can retrieve:


    memberNumber =...
  38. Replies
    5
    Views
    860

    Deserialising a JSON array

    Dear Friends,

    After much help, I have progressed well with my project but I am now having trouble reading data from a Webservice JSON response. I have created classes for all components of the...
  39. Replies
    2
    Views
    2,187

    Re: No binding data in bound table in WPF

    And just for completeness, here is my entire debug output - hte only other errors are the dll exceptions, which dont seem to be the key issue?:


    'Goldie.exe' (CLR v4.0.30319: DefaultDomain):...
  40. Replies
    2
    Views
    2,187

    Re: No binding data in bound table in WPF

    I've managed to find 2 errors in the debug, and these relate to the troublesome table and to binding:


    System.Windows.Data Error: 40 : BindingExpression path error: 'Table1Acctdetails_Unpaid'...
Results 1 to 40 of 117
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width