I have a question about column styles and mapping using VB.NET. I think I've setup the column styles okay, but columns themselves are not mapped.
First, I define the column styles...
Public Sub PopulateDataGrid1_DefineColumns()
' Define Table
' Part Qty
Dim aCol0...
Four full functions below. Yes, the Next is there for a reason. I also tried Return with no help.
Thanks for your replies thus far.
Public Sub cmdGetProp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGetProp.Click
' Define Part Document
'...
I have a function like this:
GetPartProperties
.
.
.
Call GetComponents(oApprenticeServerDoc.ComponentDefinition.Occurrences)
Public Sub GetComponents(ByRef CompCollection As InventorApprentice.ComponentOccurrences)
' Interate through the components as...
I would still like to ask - for future reference, does the IsNumeric command evaluate strings, or is it looking for the number? Is the case below true?
IsNumeric "12" = True
IsNumeric "12X" = False?
Thanks for your reply.
I'm sorry, but I don't follow much of this dialogue. The quantity I am using will either have a number, or a number with XXX after it. XXX means exclude. This numeric value is used in Autodesk Inventor, in an assembly drawing. The name of the waaembly is followed by :12XXX. Ste string I am...
Yes, but X cannot equal 0
If the string equals 12XXX then 0 would start before the 1 in 12XXX when I assign variable Q. Do I need to use Option Base 1.
Secondly, should IsNumeric work on a string value, like
IsNumeric "12" = True
IsNumeric "12X" = False?
Thanks for your reply
'...
Why are we using Not IsNumeric instead of simply IsNumeric?
In my original example, I sought to loop thru four times. If 12XXX were the text, the first time would produce a 1 and would be numeric. The seccond would produce a 12 and also would be numeric. The third would produce 12X, and...
IsNumeric vs Not IsNumeric?
This code produces System.OutofRangeException. The input variable is 12XXX, and I am looking for an int16 of 12 to assign to global variable Q.
Public Sub IsItNumeric(ByVal ConStr As String)
' Example Data is 12XXX or 12
Dim x As Int16...
Can someone please tell me what I am doing wrong here? I simply want to get the first characters of a string until they become non-numeric and apply the quantity variable Q.
Thanks in advance for the help!
Public Sub IsItNumeric(ByVal ConStr As String)
' Example Data is 12XXX or...
Unhandled exception of type System.NullReferenceException occurred HERE: .DataType = System.Type.GetType
works great for second column in datatable aCol10. Actually, this column was once first, and I added one. I'm just slightly confused.
Any thoughts are apprectated!
Thanks
'...
Okay, I've got this working, but I have no idea how to relate styles to it.
' Part No.
Dim aCol0 As New DataColumn
With aCol0
.DataType = System.Type.GetType("System.String")
.ColumnName = "PN"
.Caption = "Part No."
End With...
Simple Question, how do I get my data in the datagrid? Full code below. This data is not derived from a database, but properties from our CAD package, which will eventually be synchronized with data. For now, I am trying to firgue out how to manipulate the CAD data. However, is there a...
I am messing around with Datagrids in VB.NET 2003. Can these be used like the flex grid in VB6, where I can populate data according to the data itself, instead of another database structure? I have sompe properties in Autodesk Inventor that I want to manipulate!
Thanks for the help...
I am messing around with Datagrids in VB.NET 2003. Can these be used like the flex grid in VB6, where I can populate data according to the data itself, instead of another database structure? I have sompe properties in Autodesk Inventor that I want to manipulate!
Thanks for the help...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.