473,466 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Strings and Shorts from vb.net to vb6 component ??

al
Hi,

How should i pass Short and String datatype parameters from vb.net to
vb6 component. Should I use conversion function or it will work just
fine with no conversion.

MTIA,
Grawsha
Nov 20 '05 #1
4 1896
"al" <gr*********@yahoo.com> schrieb

How should i pass Short and String datatype parameters from vb.net
to vb6 component. Should I use conversion function or it will work
just fine with no conversion.


Short and String shouldn't make problems. Short is Integer in VB6 as you
probably know.

In general:
http://msdn.microsoft.com/library/en...nentstocom.asp
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Hi,

Strings should pass fine. A VB.NET short is the same as a VB6
integer.

Ken
-----------------
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Hi,

How should i pass Short and String datatype parameters from vb.net to
vb6 component. Should I use conversion function or it will work just
fine with no conversion.

MTIA,
Grawsha

Nov 20 '05 #3
al
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message news:<uM**************@tk2msftngp13.phx.gbl>...
Hi,

Strings should pass fine. A VB.NET short is the same as a VB6
integer.

Ken
-----------------
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Hi,

How should i pass Short and String datatype parameters from vb.net to
vb6 component. Should I use conversion function or it will work just
fine with no conversion.

MTIA,
Grawsha


I thought I should make conversion since short in vb6 is 8-bit integer
while it is 16-bit in vb.net and the same thing with string type.
grawsha
Nov 20 '05 #4
"al" <gr*********@yahoo.com> schrieb

I thought I should make conversion since short in vb6 is 8-bit
integer while it is 16-bit in vb.net and the same thing with string
type.


Short does not exist in VB6. Short in VB.Net is 16-bit, and 16-bit in VB6 is
Integer.

VB6 VB.Net
8 bit Byte Byte
16 bit Integer Short
32 bit Long Integer
64 bit - Long
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mark Light | last post by:
Hi, I have a string e.g. 'C6 H12 O6' that I wish to split up to give 2 strings 'C H O' and '6 12 6'. I have played with string.split() and the re module - but can't quite get there. Any help...
17
by: Gordon Airport | last post by:
Has anyone suggested introducing a mutable string type (yes, of course) and distinguishing them from standard strings by the quote type - single or double? As far as I know ' and " are currently...
5
by: F. Janse Kok | last post by:
I have to write an array of little-endian shorts to the registry of my pocket-pc for example the value's 2 , 5 and 10 but I don't know how to work with chr(0). In my example below the string...
2
by: Christopher Beltran | last post by:
I am currently trying to replace certain strings, not single characters, with other strings inside a word document which is then sent to a browser as a binary file. Right now, I read in the word...
7
by: Paul K | last post by:
I'm writing a small component that needs to be as fast as possible. The component needs to convert a string to decimal during the course of it's processing. However, I need to test the string...
16
by: InDepth | last post by:
Now that .NET is at it's fourth release (3.5 is coming soon), my very humble question to the gurus is: "What have we won with the decision to have string objects immutable? Or did we won?" ...
8
by: Hahnemann | last post by:
Is there a sample in C out there to represent a sequence of numbers (shorts) using bits? With the intention of saving space, instead of using the full 16 bits per short. Thanks. - Hahnemann
4
by: chesca | last post by:
Hi everyone. I'm reading "Programming C#" and I just got to the part about built-in data types. Apparently, integers are better than smaller types because modern CPUs are optimized for dealing...
4
by: Bats | last post by:
I'm writing an XSUB to glue an existing C module to my perl code, but I'm kind of new to C. I want to save 2 shorts and n unsigneds in a char * array (so I can return the array to the perl module...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.