Jump to content

Mellon

Active Members
  • Posts

    26
  • Joined

  • Last visited

Mellon's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. While I haven't used autoit and mysql I do know mySql. This is an issue in how we maintain the data. Each chart list is unique to the vessel. The program that creates the chart data uses text files as its list. If I was to turn the flat file database to an sql database I would have to maintain both databases and any drift would cause problems. In this case it is easier to use the data I know is being maintained because it has to be maintained.
  2. Err, as noted in the article the development time isn't small. Getting something to work across OS isn't a matter of search and replace. You also have the added time and expense of maintaining the item across OSs.
  3. Just to make sure we understand each other I am not thinking about putting the list of vessels as an include. What I am think about would be something like this: MajorProgram (has #include Get_List_of_Vessel.au3) ---> Need to get list of vessels ---> call a function from (Get_List_of_Vessel.au3) ---> Function in Get_List_of_Vessel.au3 open the file at c:VesselAllVessels.txt ---> Allvessels.txt is processed. ---> Processed text file is added a combobox on the GUI created in MajorProgram Processing returns back to MajorPrograming. Even if this is possible I suspect it would be a bad way to do it. I have standardize the way I do this but I have three useful programs that I wrote before I had much experience. I think I'm gonna have the bit the bullet and do a large rewrite. Must likely just as well ...
  4. I have a number of programs that query either the same or sub-sets of the same information. For an example, I have one program that lists a chart list for a specific vessel, I have another that will get me support and shipping history for a specific vessel and I have a third that will get a list of code numbers I need to send the vessel to unlock specific add-on programs. So I have a couple of newbe questions about this. I will start with a very simple example: I have a list of vessel names I need to get into a Combo. Start this using _FileReadToArray. I them break off part of the line I don't need and use GUICtrlSetData to add the part I do need Combo. Is it possible or reasonable to populate a Combobox from an include?
  5. There are a lot more people who use Windows on the desktop then there are people who use Linux on the desktop. Creating a game is expensive.
  6. I might be missing your point but it would be easier to do with a Firewall. With a fairwall you only allow certain items to connect to the web.
  7. Unless there is a crying need to have this running all the time I would skip the first part and just use the Windows scheduler to start the thing.
  8. Number ( expression [, flag ] ) (large snip) "A string beginning with digits has non-numeric characters stripped" To me this sounded like a string such as "1,000,000" would return 1000000. It returns 1. You might change this to something like "A string beginning with digits has non-numeric characters and all following numeric and non-numeric characters stripped" In the example, I did see tht 24/7 would return 24. However, since a comma is used very often with a number you might want to at least add Local $v=Number("1,000" ) ;returns 1
  9. Thanks, I'll dig into that later on today. I seem to be plagued by data suppliers who don't bother to tell me about format changes.
  10. I used _FileReadToArray to compare and remove data from two files. Since the data was in the same format this worked well since I could compare full strings. However, the format has changed in the newer files but I still need to compare and remove data from the old format. The older information looks like this | 52.091333|-172.758667|HAZARD AS WORD|UTC| The new info looks like this | 52.091333|-172.758667|HAZARD AS NEW WORD|UTC| I was wondering if there was something akin to _FileReadToArray that will produce multidimensional arrays. As far as I can tell there isn't but I thought I would check before changing the code enough to produce the arrays myself.
  11. Did the corruption happen on the same day/run? Do the known corrupt files have a time/date that can be assocated with the good files (i.e. were the filescreated a minute before or after the good one. Can you compare modified or accessed dates)? Do the corrupt files have a common size?
  12. Thanks. By happenstance I have always used @error=-1 right after a file read so I never ran into this before.
  13. This was supposed to be a quick and dirty program to complete a one off project. It hasn't been quick. I have a list of vessel names. These vessel have brought our software and we need to make sure that they are offered an upgrade to a regulatory module we sell. The program should. 1) Get the name of the vessel from a file on the local machine. 2) Loop through a file text file (purchased.txt) until to comes to the last entry, searching for the word Dealer. 3) Add the vessel and Dealer name to a third file 4) Close the vessel's text file. 5) Start over again at 1 from the next vessel This works splendidly for the first vessel on the list. However, it seems to get stuck in the Do loop. The information never gets written to file and first purchased.txt file never gets closed. Is "until @error=-1" valid? While 1 $VesselName=FileReadLine($Get_Vessel_Name) $VesselPath=$customerdatalocation & $VesselName &"\Purchased.txt" ;Loop until you reach the end of the File $Dothefile=Fileopen($Vesselpath,0) GUICtrlSetData ( $Label1 , $Vesselpath) Do $LookforLastDealer=FileReadLine($DotheFile) $whoisthedeal=StringInStr($LookforLastDealer,"Dealer") if $Whoisthedeal<> 0 Then $Thedealer=$LookforLastDealer ;$Whoisthedeal=0 $thestatus=@error msgbox(1,$Whoisthedeal, $Thestatus) EndIf until @error=-1 msgbox(1,"2", $Thedealer) $Whatthefuck=FileWrite($Vesselwithdealer,$VesselName&" "& $Thedealer) fileclose($Dothefile) WEnd
  14. All of which begs my question. Why does my script work correctly for the first record and then fail for all the rest?
  15. I suspect that will work. However, regular expressions make my teeth bleed. The benefit of my coding is that, should I need it or something like it again I can support it.
×
×
  • Create New...