• Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching dev

    can someone please help me with this pascal program, does this look right? Program StudentScores; var c: integer; s: integer; t: integer; n: integer; p: integer; f: integer; h: integer; …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in dev

    Without knowing what the program is supposed to do it is difficult to judge if it looks right. However there are one or two things worth commenting on regardless of …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching how to count down from 30 seconds with a timer.

    am looking for a way to count down from 30 seconds using a timer and updating a Gauge using Progress to reflect the time remaining. I know this is very …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in how to count down from 30 seconds with a timer.

    The GetTickCount function retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days Your comment suggests FreeTimer.Interval is 30000. So you set TotalTime, …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching 10 random numbers Array, their average & the amount of larger numbers

    Okay so I have this program that generates 10 random number (1-1000), calculates their average and the amount of larger as well as smaller numbers than the average, this is …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in 10 random numbers Array, their average & the amount of larger numbers

    Chris, a good technique to trace errors like this is to simply use a pencil & paper and manually follow the instructions in your code. Set & change the values …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Created Kudos & suggestion

    Kudos for the Favorite Tags and Favorite Forums options on the Finder menu. Are they new? I hadn't seen them before, but they are a significant improvement. They very much …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Kudos & suggestion

    Kudos for the Favorite Tags and Favorite Forums options on the Finder menu. Are they new? I hadn't seen them before, but they are a significant improvement. They very much …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Delphi DirectoryListBox returns wrong Directory

    If I doubleclick on a DirectoryListBox, Delphi returns the directory above the clicked one. A second doubleclick on the same directory returns the wanted directory. How do I select the …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Delphi DirectoryListBox returns wrong Directory

    It is always a good idea to look at the source code in cases like this, if you have the VCL sources in your Delphi version. That way you can …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in What's wrong with the website?

    I contrast this site with a (non-tech) forum I have been using for 10+ years. That forum has not been updated in that time, but it is popular/well-supported within its …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching What's wrong with the website?

    What's going on? I can neither find the home page nor the forum directory. And when I went to log in, there was no option for logging in with my …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in What's wrong with the website?

    I agree. Although I never posted a lot, I used to visit a few times each day and now I visit once every few days, with the interval between visits …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Placing checkboxes in dbGrid in Delphi 7

    I have 5 date fields in a table. I want to place CheckBoxes against each date field to allow user to check the appropriate date for the employee's weekly holiday. …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Placing checkboxes in dbGrid in Delphi 7

    There is no in-built way to do it so you have to roll your own. There are 2 sides to this problem: To get the data as booleans rather than …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Seeking a partner to create something world changing

    > They'd just use other things. Agreed. That was exactly my point in quoting the case of Scotland which has a high murder rate despite guns being (I believe) banned.
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Seeking a partner to create something world changing

    > So you reckon the perennial high school massacres would be just as bad if kids didn't have guns? Not sure about that. I'm not sure either. Intuitively I would …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Seeking a partner to create something world changing

    I'm a recent 1st class Computer Science graduate earning a reasonably good amount of money. Ever since I can remember, I have an intense desire to create something meaningful using …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Seeking a partner to create something world changing

    The Welsh, being inventive people, don't need guns to perform mass murders: [5 killed by fire in Prestatyn](http://www.digitaljournal.com/article/349392) That is of course unusual and I don't mean to suggest that …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Re-enter the software world

    Greetings, I used to write software in the days of Pascal, and since then have moved into other IT areas. I am returning to the programming world but since I …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Re-enter the software world

    A lot depends on your goals. What are you aiming at? Desktop v Mobile v Web for example can influence your choice. What about your target OS? Also important. Professional …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in detect location of a selected exe file on hard drive

    Post the code you tried.
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching detect location of a selected exe file on hard drive

    Can anyone help me out with abit of code that will detect the location of any exe file on a hard drive / cd? am trying to build a simple …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in detect location of a selected exe file on hard drive

    If all you want to do is to launch the app then the easiest way is not to find it at all. Just lauch the EXE without specifying its path …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Toshiba L770 Power Problem?

    My Toshiba L770 Satellite Laptop does not power up, no LEDs lit when power adapter is plugged in. Power adapter producing 19.4 volts. Opened up laptop and got 19.4 volts …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Toshiba L770 Power Problem?

    I had a similar problem with my Tosh. I put the machine aside for a few weeks till I had time to look at it and when I came back …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching ADO.Locate issue

    I'm having an issue using the ADO.Locate function (Using Delphi 7). I've got the following code: procedure TFrmMain.RzBtnProcessClick(Sender: TObject); var WB: IXLSWorkbook; WS: IXLSWorksheet; X: Integer; MillStyle: Integer; KnitNo: Integer; …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in ADO.Locate issue

    I don't see anything obviously wrong with your code so I would look at your data. For example, you check: if not VarIsNull(WS.Cells[X,3].Value) then but what about MillStyle:=WS.Cells[X,2].Value; Can `WS.Cells[X,2].Value` …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Writing arrays to .dat

    I need to o an assignment where i make two programs, one to write a list of players in a team and their scores, the other to read and search …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Writing arrays to .dat

    Think what the value of `List2` is in this line: Writeln(UserFile, Score[List2]); or here: Writeln(UserFile, Score[List2]); You don't initialize List2 to any known value and you never change it.
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in new to pascal objects

    I don't know what went wrong with the formatting of my reply above! Sorry about that.
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching new to pascal objects

    I am attempting to write a Hangman game using OOP. I have it done using procedural programming. I am not looking to make it a two person game yet. What …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in new to pascal objects

    Good that you have something working! That puts you ahead of the game already. Here are some comments on your code and your question. 1. Data encapsulation is an important …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching help with scrolling caption with bounce left and right

    Ok here what am trying to do, when its scrolling left, I want to get the full length of the lblmarquee caption and then when it scrolls to the end …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in help with scrolling caption with bounce left and right

    There is a nice Marquee component at http://www.delphiarea.com/products/delphi-components/marquee/ It can scroll left or write. All you would need to do is handle its onWrap event and swap its direction, like …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Delphi

    is there any delphi dis assembler available?
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Delphi

    You want a de-compiler rather than a disassembler. I have seen a few mentioned over the years but have never tried them so can't comment on how good they might …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching a event not being called within my program

    Following code below should reconnect my audio server if it was found to be disconnected now all is good the timer event is called and the system message shows its …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in a event not being called within my program

    I don't see anything wrong with this, assuming "'ADDR', 'PORT', 'PASSWORD'" is just dummy data to avoid publishing your real data, and that you enable the timer somewhere. I suggest …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Hotel Reservation Site

    Hi I am building this website for a small hotel. The user interface is ready and I have a form as shown below: If I click on submit I can …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Hotel Reservation Site

    Your bookings record tells you who the booking is for but doesn't tell you what was booked. You need to have another table to cross-reference each booking with the rooms …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Another NULL pointer in fopen

    Hello, I'm writing the simple code as below #include <stdio.h> #include <stdlib.h> int main() { FILE *fp; float x,y; int n; int errno = 0; int i; fp=fopen("test_numbers.dat","w"); for(i=1;i<=10;i++) fprintf(fp,"%d …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Another NULL pointer in fopen

    You are opening the file twice, once for writing & once for reading. The 2 commands you use are: fp=fopen("test_numbers.dat","w"); fp=fopen("./test_numbers.dat","r"); Perhaps you are trying to read the file in …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Help with twebbrowser and html button click detection

    Am having a awful time trying to get this to work I googled it and even asked few friends about it, but it seams it more difficult than I expected …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Help with twebbrowser and html button click detection

    Start a new project. Add a status bar and set SimplePanel TRUE. Add a TWebBrowser (and set Align alClient). Add this for the form's onCreate event handler: procedure TForm2.FormCreate(Sender: TObject); …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Began Watching Delphi installing problem

    I have windows7 64bit I am trying to install borland delphi 6 my Problem is when I run the program , the next message appear: ![2.png](/attachments/large/4/d7ae545f682db0c4751647130738edd9.png "align-center") and when I …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Delphi installing problem

    http://www.drbob42.com/examines/examin84.htm
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Stored procedure definition syntax error

    Yes, I removed the change of delimiter and reverted to ; instead of $$ in the SQL script that defines the stored procedure. It isn't a nice solution because it …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Marked Solved Status for Stored procedure definition syntax error

    I am using the MySQL C API and having problems defining a stored procedure. MY SQL script works fine in MySQL Workbench but the same script fails in my own …
  • Member Avatar for SalmiSoft
    SalmiSoft

    Replied To a Post in Stored procedure definition syntax error

    YES !! Many thanks. That fixed it.

The End.