dcsimg

Search:

Type: Posts; User: DennyGinson

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    150

    VS 2017 [RESOLVED] NaN ... how come?

    I am using the Gauss Seidel Method to solve the momentum equations as part of a colocated grid cfd code (but that's not what my question is about). The following code resolves x(i) as NaN. Maybe...
  2. VS 2017 Re: Question about passing and returning sub arguments

    Thanks folks! You've cleared up appoint of confusion for me!
  3. VS 2017 Re: Question about passing and returning sub arguments

    passel … hey … it worked! Especially when I fixed the variables where ByRef was omitted … Thanks! Sometimes it just takes fresh eyes!

    Question … would using a Return statement have worked?
  4. VS 2017 Re: Question about passing and returning sub arguments

    passel … ok … why do you say: "If you're not going to use the method as a Function and return a value, …" that's what the question is about … it's not returning the proper values … not arguing, just...
  5. VS 2017 Question about passing and returning sub arguments

    I'm having trouble getting the function call and function (below) to work properly. The intent is to pass the x, y (in this case ir, jz) index to the function and have it return the array index and...
  6. VS 2017 Re: "doesn't return a value on all paths" ... help needed!

    The values are used all over the code … it returns matrix indices and it works … someone here told me I had to use ByRef to return the value to its calling sub. Thoughts?
  7. VS 2017 "doesn't return a value on all paths" ... help needed!

    I encountered the following warning while running aa code containing the Function below. The code runs fine despite the warning but it makes me nervous ... can anyone tell what to do about this:?
    ...
  8. VS 2017 Re: [RESOLVED] Is there a matrix inversion function in VB?

    I marked it RESOLVED because the answer seemed to be that there's nothing available in VB to invert a matrix so I figured it was a moot point. I will definitely look into topshot's suggestion …...
  9. VS 2017 Re: Is there a matrix inversion function in VB?

    Nope ... didn’t see the different color ... old age. Thanks.
  10. VS 2017 Re: Is there a matrix inversion function in VB?

    Did you mean to leave a link?
  11. VS 2017 [RESOLVED] Is there a matrix inversion function in VB?

    I’ve done some searching and found some math libraries that include matrix operations but I’m hoping VS2107 has something ... I need to invert a matrix (roughly 100x100) and multiply the result by a...
  12. VS 2017 Re: Function not returning values ...

    Got it working! Thanks folks!
  13. VS 2017 Re: Function not returning values ...

    If I eliminate the " " it writes a value. How would I include the identifying string?
  14. VS 2017 Re: Function not returning values ...

    Can you tell me why the console isn't displaying the variables I asked for?
  15. VS 2017 Re: Function not returning values ...

    Thank you … I will try that right away.
  16. VS 2017 [RESOLVED] Function not returning values ...

    This is a function I've used over and over again and it always works … except this time. Here's the code from the the Main sub calling the function:



    'Write face areas
    ...
  17. VS 2019 Re: [RESOLVED] Visual Basic ... trouble with writing to a file

    You're right … it took looking at it for a while to see what was happening. I decided to separate the variables into groups and write them to separate files (so the data won't be wider than a page...
  18. VS 2019 Re: [RESOLVED] Visual Basic ... trouble with writing to a file

    passel … thanks! Fortran has two methods to accomplish that … you can include a file with the arguments in it or (my favorite method) you could have a named Common list of variables that you could...
  19. VS 2019 Re: Visual Basic ... trouble with writing to a file

    I got this one fixed so no need to reply … thanks!
  20. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Ok … thanks!
  21. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Ok … thanks!
  22. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Thanks! I will definitely check that out.

    BUT … I'm getting an error on the call of this subroutine (call is below):


    'Calculate and store grid cell face areas, skew terms, and normal...
  23. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Outstanding! It works … would you explain the ("{0} {1} {2} {3} ..." it obviously works but, what, specifically, is it doing?
  24. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Here's the code now:



    Module Module1

    Sub Main()
    Dim r As Double
    Dim z As Double
  25. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Almost there! The code below works ...


    Module Module1

    Sub Main()
    Dim r As Double
    Dim z As Double

    Using writer =...
  26. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Ok … the 2017 version works with the method described above. I'm sticking with that.
  27. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Update … I started a new project in VS 2019 and tried the code snippet to write to a file … and got the same error. Apparently either there's a bug in VS 2019 or something regarding this topic has...
  28. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Thanks folks! I appreciate the help!
  29. VS 2019 Re: Visual Basic ... trouble with writing to a file

    jmcilhinney … thanks! Would you give me an example of "invoking a constructor of the StreamWriter class"?
  30. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Interesting … the "Private ReadOnly FileSystem As Object" is what Visual Studio 2019 (Intellisense) offered as a fix … as was the Namespace and Class that was deleted earlier. Yes, I am a 40 year...
  31. VS 2019 Re: Visual Basic ... trouble with writing to a file

    I also got an error …
    Severity Code Description Project File Line Suppression State
    Error BC35000 Requested operation is not available because the runtime library function...
  32. VS 2019 Re: Visual Basic ... trouble with writing to a file

    The project was started the way passel mentioned … as for getting rid of My.Computer, as adding
    Private ReadOnly FileSystem As Object (which cleared the "not declared" error) I've got this (but...
  33. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Caught a couple errors … corrected them:



    'plot r and z
    Using writer = My.Computer.FileSystem.OpenTextFileWriter("C:\Users\denny\source\repos\atomizer\test.txt", True)
    ...
  34. VS 2019 Re: Visual Basic ... trouble with writing to a file

    I deleted the file … still get the same errors.

    Here's the code as it is now:


    'plot r and z
    Dim TestStr As String
    Using writer =...
  35. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Computer does not come up after My. and the compiler issues an error (BC30456) "Computer is not a member of atomizer.My" and (BC30451) "Format is not declared …"
  36. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Do I still need a namespace named My with a Class named Computer? I'm not new to programming but I am relatively new to OOP (as an explanation for what might be a dumb question)
  37. VS 2019 Re: Visual Basic ... trouble with writing to a file

    Here's the exception referencing the afor mentioned line of code.

    Exception thrown: 'System.NullReferenceException' in Microsoft.VisualBasic.dll
    An unhandled exception of type...
  38. Re: The Build was Sucessful ... Now How do I run the executable?

    Shaggy Hiker and Passel … Thanks! I'll have to look into the Forms Ap. This is a great Forum. It's helping me get my feet wet with OOP (which I, obviously, need to do).
  39. VS 2019 [RESOLVED] Visual Basic ... trouble with writing to a file

    I'm trying to write variable values to a file from a Console App. The code I'm using is below. There is also a namespace saved as a separate file that's also shown. Can anyone tell me what's wrong...
  40. [RESOLVED] The Build was Sucessful ... Now How do I run the executable?

    First thanks to the folks that have gotten me this far! Please don't think I dump questions here before looking elsewhere … most of the Microsoft help sites have such brief, cryptic wording … as...
Results 1 to 40 of 51
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width