hi, i use codes from Guido Geurs "Read and display specific data_v5.3.zip" from my previous thread below:
http://bytes.com/topic/visual-basic/answers/896473-read-display-specific-data-text-file-into-listbox-using-vb-6-a#post3621111
the data used is "Datum_0.txt" but the results in Form_Calculate are incorrect (see attachment). they should be 0.0, 41.0, 92.9, 157.0, 234.5, 326.7. i don't know what was wrong. Guido Geurs, i really need your help here... thank you.
I'm using VB6 SP6 on XP SP3.
Is it possible to attach Your compilation of the program in Bytes so I can do a test on my PC and see of I also get the wrong results?
Is it possible to do a test on an other PC with XP ?
Can You set a breakpoint in the program on the calculation and watch what is happening with the values of "Val(ARRAYDATA(ARRAYDATAidx - 1).CUTVOL" and "Val(.TextMatrix(ARRAYDATAidx - 1, 1))" ?
i'm using Vista. is that the problem?how if there are users of this program using Vista. will they get the wrong results though? i just use the program from your last attached file from previous thread. i am not yet compile it with my program since i got the incorrect results.
the problem is all PCs in this room are using Vista. but if that is the real problem i'll find PC with XP from outside.
i am sorry that i don't familiar with this breakpoint. i read through about breakpoint from books and try to set it in the program but somehow i don't get what to see from it. can you explain about it in simpler words? sorry for my limited knowledge.
thank you for the explanation of breakpoints. it is much understandable than from the books!
i have changed the Val to CSng. it does solve the incorrect numbers but they are not in the form that they should be. the answer in Calculation form appears
0.0
410,0
929,0
1570,0
2345,0
3267,0
where they should be
0.0
41.0
92.9
157.0
234.5
326.7
how can we fix this? by the way, can you briefly explain the different between using Val and CSng? how can CSng solve the incorrect answers?
When the string "41.0" is interpreted as 410 then it means that the decimal symbol DOT isn't recognized as border between units and decimals in the CSng() function.
The "decimal simbol" is different in the "Regional and Language Options" and the data in the document.
See attached GIF files Region1.gif and Region2.gif.
How to modify: see GIFs Region3.gif and Region4.gif or build in the program a function with Replace(...) so the user can change the DOTs to COMMAs and vice versa.
I have also searched the internet and found a lot of calls of users who had problems with VB6 on Vista.
Maybe it's better to change to VB.net if all the users are on Vista ?
Sorry, here they are.
Instead of always changing the regional setting, it's also possible to let the user change the data in the list with a command button with a For...next and the function Replace().
Expand|Select|Wrap|Line Numbers
Private Sub ComRegional_Click()
Dim ROWidx As Integer
Dim COLidx As Integer
With MSFlexGrid1
For ROWidx = 1 To .Rows - 1
For COLidx = 0 To .Cols - 1
If .TextMatrix(ROWidx, COLidx) <> vbNullString Then
I'm seeing a very strange problem with outer joins.
The example below replicates the problem:
create table data1 (dim1 integer, stat1 float);
create table data2 (dim1 integer, stat2 float);
...
Hi,
I'm an Access newbie and I'm trying to create a simple report binded
to a query
which is:
SELECT survey.q0_sex AS Gender, Count(survey.q0_sex) AS
FROM survey
WHERE q0_sex<>""
GROUP BY...
Hi to all.
I am pretty new to this stuff , so forgive me if I am asking the
obvious.
I am trying to extract some data from an Access database and am having
some trouble.
The SQL query that I am...
I am trying to return the difference in minutes from a starttime and stoptime
using the datediff function in a Web Project with VB.Net
With:
StartTime = 2/10/2006 8:46:03 PM
EndTime = ...
I noticed weird results when using eval() to do some simple
calculations. Here are a few eval() statements and the corresponding
results from JavaScript:
eval("1.2+0.97") =2.17
eval("1.2+0.98")...
Hi Everyone, I'm back for some more expert help. Here's what I am
doing and what I tried.
My database has entries with Contract Names and Expiry Dates, among
other fields. I have a form...
In the example that follows, I am receiving an incorrect result set in the View. I am looking to get the FULL result set from View_LY and Table_TY. Instead, this View is returning the Common (Equi)...
I have a SQL Server 2005 DB that I set up an ODBC connection to so
that people can access the data through MS Access. There are 3
tables, each of which have a date column that is a varchar (20)...
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
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...
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,...
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...
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...
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
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 ...