MI-L MapX (Very Urgent)

2003-03-17 Thread Vishal Sharma
Hello There

I am using MapX 5, VB 6, Oracle 8i.
My problem is even when i load a layer of type line feature, its predominant feature 
type shows symbol type. And in the legend or
PropertyPage its style also comes as a symbol.

What could be the reason for it and how should i solve it.
The code i am using to load this layer is as below :
Suppose, my layer name is  WATER_PIPES.After loading it I say

frmMap.Map1.Layers(WATER_PIPES).OverrideStyle = True
frmMap.Map1.Layers(WATER_PIPES).Style = frmMap.Map1.DefaultStyle



Thanx in advance

Vishal Sharma
 


MI-L Very Urgent

2003-03-17 Thread Vishal Sharma
Hello There

I am using MapX 5, VB 6, Oracle 8i.
My problem is even when i load a layer of type line feature, its predominant feature 
type shows symbol type. And in the legend or
PropertyPage its style also comes as a symbol.

What could be the reason for it and how should i solve it.
The code i am using to load this layer is as below :
Suppose, my layer name is  WATER_PIPES.After loading it I say

frmMap.Map1.Layers(WATER_PIPES).OverrideStyle = True
frmMap.Map1.Layers(WATER_PIPES).Style = frmMap.Map1.DefaultStyle



Thanx in advance

Vishal Sharma
 


MI-L Predominantfeature type

2003-03-14 Thread Vishal Sharma
Hello There

I am using MapX 5, VB 6, Oracle 8i.
My problem is even when i load a layer of type line feature, its predominant feature 
type shows symbol type.

What could be the reason for it and how should i solve it.
The code i am using to load this layer is as below :
Suppose, my layer name is  WATER_PIPES

frmMap.Map1.Layers(WATER_PIPES).OverrideStyle = True
frmMap.Map1.Layers(WATER_PIPES).Style = frmMap.Map1.DefaultStyle



Thanx in advance

Vishal Sharma
 


MI-L Line Feature

2003-03-14 Thread Vishal Sharma
Hello There

I am using MapX 5, VB 6, Oracle 8i.
My problem is even when i load a layer of type line feature, its predominant feature 
type shows symbol type. And in the legend or
PropertyPage its style also comes as a symbol.

What could be the reason for it and how should i solve it.
The code i am using to load this layer is as below :
Suppose, my layer name is  WATER_PIPES

frmMap.Map1.Layers(WATER_PIPES).OverrideStyle = True
frmMap.Map1.Layers(WATER_PIPES).Style = frmMap.Map1.DefaultStyle



Thanx in advance

Vishal Sharma
 


MI-L Snap to nearest point

2003-03-13 Thread Vishal Sharma
Hello There

I am using MapX 5.0, VB 6.0, and Oracle 8i.

While drawing line feature from one point to another point, I am not able to find how 
i can snap to the nearest point. 

That is after drawing line feature on two points, I zoomIn the map the line gets away 
from the points. 

Thanx in advance.

Vishal Sharma


MI-L Urgent Please

2003-03-11 Thread Vishal Sharma
Hello There

Using VB6, MapX 5.0, and Oracle 8i.

I want to know, How to search a feature using SearchAtPoint method on Map1.MouseDown 
event.

The code below I am using is not working.

Private Sub Map1_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As 
Single)
Dim lyrTemp As mapxlib.Layer
Dim lstrFeatureName As String
Dim lstrFeatureValue As String
dim lobjPoint as Point

Set lobjPoint = Nothing
lobjPoint.Set x, Y


For Each lyrTemp In Map1.Layers
Set gftrFeature1 = lyrTemp.SearchAtPoint(gobjPoint)

For Each gftrFeature2 In gftrFeature1
lstrFeatureName = lyrTemp.Name
lstrFeatureValue = gftrFeature2.KeyValue
Next
Next
end sub

Thanx in advance

Vishal Sharma




MI-L Need MapX 5 help

2003-03-10 Thread Vishal Sharma
Hello There

I am using VB 6, Oracle8i, and MapX 5.0. I am having two questions.

1) Suppose my map.current tool is  ZoomIn. And as soon as I click a Point button on my 
VB form, i want to change the
Map.Currenttool to miaddpoint. But when i do so, i get an error which says, The 
insertion layer is not. First set the insertion layer.
Can anybody please suggest me what could be the reason and how to solve it.?
 
2) From a VB form, if the user clicks the Delete button, i want to delete that record 
and also want to remove the corresponding
symbol from the map permanently.
How to do it. A sample code in VB would really be nice.

Thanx in advance.

Vishal Sharma



MI-L Snap to nearest point

2003-03-10 Thread Vishal Sharma
Hello There

I am using MapX 5.0, VB 6.0, and Oracle 8i.

While drawing line feature from one point to another point, I am not able to find how 
i can snap to the nearest point. 

Thanx in advance.

Vishal Sharma




MI-L CreateFeature without loading Layer

2003-03-09 Thread Vishal Sharma
Hello There

I am using VB 6, Oracle 8i, and MapX 5.0.

I want to create a feature of say point type and update the same in table without 
loading the layer.

Can anybody please tell me how do it. A sample code in VB would really be helpful.

Thanx  Regards..
Vishal Sharma


MI-L Need Help

2003-03-07 Thread Vishal Sharma
Hello There

I am using VB 6, Oracle8i, MapX 5.0. I am new to this tool.

Basically, I just want to know,
How to delete a feature and its other attributes from table  Map.

Process is under: 

There is a button on my MDI form. Click on this button and then the  DPsymbol on 
map. The corresponding DP Form(VB) should get invoked in Update/Delete mode. If the 
user clicks on the Delete button on this form, that particular DP should get deleted 
from the table and also the map should get refereshed.

Can anybody please help me with a VB sample code.

Thanx in advance.

Vishal Sharma


MI-L Any suggestions please

2003-03-07 Thread Vishal Sharma
Hello There

I am facing a very peculiar problem, if some one can help me please. I am using VB6, 
Oracle 8i, MapX 5.

Suppose, i load 4 layers namely:

Joints, DP, Valves ,PR

When i load DP layer with others, It works fine.
But if I load other three layes and not DP layer, the layers are not visible.
What could be the cause and any suggestion would really be grateful.

Thanx  Regards.
Vishal Sharma




MI-L Need Help!!!!!

2003-03-05 Thread Vishal Sharma
Hello There

I am using VB 6, Oracle 8i, and MapX 5.0. I am new to this MapX tool.

Basically, i just want to know, how can I add a feature and its other attributes in a 
table without loading my layer.

In other words, suppose there is a feature DP and its corresponding table DP_MST.
Now, without loading Layer of type DP from DP_MST table, I want to add DP feature 
on map and also update other attributes in the table DP_MST.

Any sample code in VB would really be helpful.

Thanx a lot in advance.

HFCL
Vishal Sharma



MI-L Urgent (Create Line)

2003-03-04 Thread Vishal Sharma
Hello There

I am using VB 6, Oracle8i, MapX 5.0

Could anybody please give me a sample code in VB using MapX 5.0 of 

How to draw a line on map using FeatureFactory.Createline?

Thanx in advance

HFCL
Vishal Sharma


MI-L Urgent (CreateLine)

2003-03-04 Thread Vishal Sharma
Hello There

I am using VB 6, Oracle8i, MapX 5.0. I am new to this MapX 5.0 tool.

Could anybody please give me a sample code in VB using MapX 5.0 of

How to draw a line on map using FeatureFactory.Createline and update it with other 
attributes in oracle 8i table?

Thanx in advance

HFCL
Vishal Sharma