Jump to content
Sign in to follow this  
Gus

arrays, combo boxes, csv.

Recommended Posts

Gus

I've read in a csv file to an array and displaying it. The results show my 75 rows and 3 columns. To accomplish this I used script from another post and simply expanded the columns to read by 1.

I'm stuck on populating combo boxes. Data is: building, room, network-path.

1st combo should let user select bldg and based on selection display 2nd combo with available rooms.

I'll want to implement 2 inputs with domain/username and password.

User will the be able to click button and I'll map a drive providing credentials given, get ser# of pc via wmi and exec Dos shell cmd to create folder using system date and serial# then exec ghost for backup.

I

And yes, this needs to be able to run from win7pe & win7pe.

Any suggestions?

Share this post


Link to post
Share on other sites
abberration

Here's a way to do it:

#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <file.au3>
#include <array.au3>

$fileName = "data.csv"
Dim $array[75][3]
_ReadCSV()
;~ _ArrayDisplay($array) ; Show the array of all data

$Form1 = GUICreate("My GUI", 519, 118, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 8, 32, 145, 25, BitOR($GUI_SS_DEFAULT_COMBO,$CBS_SIMPLE,$WS_HSCROLL))
$Combo2 = GUICtrlCreateCombo("", 176, 32, 145, 25, BitOR($GUI_SS_DEFAULT_COMBO,$CBS_SIMPLE,$WS_HSCROLL))
$Combo3 = GUICtrlCreateCombo("", 344, 32, 145, 25, BitOR($GUI_SS_DEFAULT_COMBO,$CBS_SIMPLE,$WS_HSCROLL))
$Button1 = GUICtrlCreateButton("Go", 416, 72, 75, 25)

_PopulateComboBoxes()

GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1

    EndSwitch
WEnd

Func _ReadCSV()
    For $i = 1 to 75 Step 1
        $lineRead = FileReadLine($fileName, $i)
        $splitLineRead = StringSplit($lineRead, ",", 2)
        $array[$i - 1][0] = $splitLineRead[0]
        $array[$i - 1][1] = $splitLineRead[1]
        $array[$i - 1][2] = $splitLineRead[2]
    Next
EndFunc

Func _PopulateComboBoxes()
    For $i = 1 to 75 Step 1
        GUICtrlSetData($Combo1, $array[$i - 1][0] & "|")
    Next

    For $i = 1 to 75 Step 1
        GUICtrlSetData($Combo2, $array[$i - 1][1] & "|")
    Next

    For $i = 1 to 75 Step 1
        GUICtrlSetData($Combo3, $array[$i - 1][2] & "|")
    Next
EndFunc

The CSV data I used:

Building1,Room1,Network_Path1
Building2,Room2,Network_Path2
Building3,Room3,Network_Path3
Building4,Room4,Network_Path4
Building5,Room5,Network_Path5
Building6,Room6,Network_Path6
Building7,Room7,Network_Path7
Building8,Room8,Network_Path8
Building9,Room9,Network_Path9
Building10,Room10,Network_Path10
Building11,Room11,Network_Path11
Building12,Room12,Network_Path12
Building13,Room13,Network_Path13
Building14,Room14,Network_Path14
Building15,Room15,Network_Path15
Building16,Room16,Network_Path16
Building17,Room17,Network_Path17
Building18,Room18,Network_Path18
Building19,Room19,Network_Path19
Building20,Room20,Network_Path20
Building21,Room21,Network_Path21
Building22,Room22,Network_Path22
Building23,Room23,Network_Path23
Building24,Room24,Network_Path24
Building25,Room25,Network_Path25
Building26,Room26,Network_Path26
Building27,Room27,Network_Path27
Building28,Room28,Network_Path28
Building29,Room29,Network_Path29
Building30,Room30,Network_Path30
Building31,Room31,Network_Path31
Building32,Room32,Network_Path32
Building33,Room33,Network_Path33
Building34,Room34,Network_Path34
Building35,Room35,Network_Path35
Building36,Room36,Network_Path36
Building37,Room37,Network_Path37
Building38,Room38,Network_Path38
Building39,Room39,Network_Path39
Building40,Room40,Network_Path40
Building41,Room41,Network_Path41
Building42,Room42,Network_Path42
Building43,Room43,Network_Path43
Building44,Room44,Network_Path44
Building45,Room45,Network_Path45
Building46,Room46,Network_Path46
Building47,Room47,Network_Path47
Building48,Room48,Network_Path48
Building49,Room49,Network_Path49
Building50,Room50,Network_Path50
Building51,Room51,Network_Path51
Building52,Room52,Network_Path52
Building53,Room53,Network_Path53
Building54,Room54,Network_Path54
Building55,Room55,Network_Path55
Building56,Room56,Network_Path56
Building57,Room57,Network_Path57
Building58,Room58,Network_Path58
Building59,Room59,Network_Path59
Building60,Room60,Network_Path60
Building61,Room61,Network_Path61
Building62,Room62,Network_Path62
Building63,Room63,Network_Path63
Building64,Room64,Network_Path64
Building65,Room65,Network_Path65
Building66,Room66,Network_Path66
Building67,Room67,Network_Path67
Building68,Room68,Network_Path68
Building69,Room69,Network_Path69
Building70,Room70,Network_Path70
Building71,Room71,Network_Path71
Building72,Room72,Network_Path72
Building73,Room73,Network_Path73
Building74,Room74,Network_Path74
Building75,Room75,Network_Path75

RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, ericgus. It will definitely help if you post your code, so we can assist you in tweaking it. Below is a snippet from a script I'm working on, which likewise converts a .csv to an Array and then displays it in the GUI. It might give you a nudge in the right direction.

Create the Combo box and set the font.

$Pkgs = GUICtrlCreateCombo("", 8, 80, 400, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Arial")

Cycle through the previously created array and set the Combo box data accordingly.Here I am using only one column of information, but you should easily be able to adapt this to grab each column you need.

For $i = 1 To UBound($aArray) - 1
  GUICtrlSetData($Pkgs, $aArray[$i][1], "")
Next

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Melba23

ericgus,

I have merged your 2 identical topics - can you please stick to just the one in future. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Gus

So far, this flips right on through with no gui appearing. I'm probably trying to mix too many things together and creating making everyone do a FacePalm...

Help?

After this, I need to display a second gui which will ask for domain/username and password (pref mask pass with * while typing), map a drive to <fileshareprefix> &amp; $sNetpath (with supplied creds), convert fileshareprefix+$sNetpath to shortname (8+3) [ie: progra~1], create a dir based on todays date + WMI Serial# + optional Workstation Name, exec Ghost to save the pc image.

#include <buttonconstants.au3>
#include <comboconstants.au3>
#include <guiconstantsex.au3>
#include <guicombobox.au3>
#include <windowsconstants.au3>
#include <file.au3>
#include <array.au3>
; $fName = @ScriptDir &amp; "data.csv"
$fName = "data.csv" ; Data Format: Building, Lab, Network Path to Ghost Inmage Storage
Global $numCols=3
Global $numRows = UBound(StringRegExp(FileRead($fName), ".+(?=v+|$)", 3))
Global $array [$numRows][$numCols]
Global $aNetPath [$numRows]
Global $sLab_Old = "", $sBldg_Old = ""

ConsoleWrite ("NumRows=" &amp; $numRows &amp; @CRLF)
_ReadCSV()
_ArrayDisplay($array)
$frmMain = GUICreate("Test", 519, 118, 192, 124)
$cboBldg = GUICtrlCreateCombo("", 8, 32, 145, 25, BitOR($GUI_SS_DEFAULT_COMBO,$CBS_SIMPLE,$WS_HSCROLL))
$cboLab = GUICtrlCreateCombo("", 176, 32, 145, 25, BitOR($GUI_SS_DEFAULT_COMBO,$CBS_SIMPLE,$WS_HSCROLL))
GUISetState(-1,$GUI_HIDE)
$btnNext = GUICtrlCreateButton("Next", 400, 72, 75, 25)
GuiSetState(-1,$GUI_HIDE)
$btnAbort = GUICtrlCreateButton("Quit", 25, 72, 60)
_PopulateBuilding()
_PopulateNetPath()
GUISetState()
While 1
    $nMsg = GUIGetMsg()
 Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
  Case $btnAbort
   Exit
 EndSwitch
 $sBldg = GUICtrlRead($cboBldg)
; If combo has changed AND closed.  If you don't check for closure, the code process as the mouse highlights the options in the dropdown
    If $sBldg &lt;&gt; $sBldg_Old  And _GUICtrlComboBox_GetDroppedState($cboBldg) = False Then
  $sBldg_Old = $sBldg ;Reset the current text to prevent flicker from constant redrawing
    EndIf
 _PopulateLab()
WEnd
; change to next combo ($cboLab)
GuiSetState($cboBldg,$GUI_HIDE)
GUICtrlCreateLabel("Building Selected » " &amp; $sBldg, 8, 32, 145, 25)
GuiSetState($cboLab,$GUI_SHOW)
While 1
    $nMsg = GUIGetMsg()
 Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
  Case $btnAbort
   Exit
  Case $btnNext
   ;ConsoleWrite ("Building: " &amp; $sBldg &amp; @CRLF)
   ;ConsoleWrite ("Lab: " &amp; $sLab &amp; @CRLF)
   ;ConsoleWrite ("Share: " &amp; $sNetpath &amp; @CRLF)
   ;***************************
   ; **********   Is this where I should jump to a second form after Building, Lab, and Share are set? It doesn't seem so but....
   ;************************
 EndSwitch
 $sLab = GUICtrlRead($cboLab)
    If $sLab &lt;&gt; $sLab_Old  And _GUICtrlComboBox_GetDroppedState($cboLab) = False Then
  $sLab_Old = $sLab
    EndIf
WEnd
; Both Selections are made so show button to progress
GUICtrlCreateLabel("Lab Selected » " &amp; 176, 32, 145, 25)
GuiSetState($btnNext,$GUI_SHOW)

; ***************
; ** FUNCTIONS **
; ***************
Func _ReadCSV()
 ConsoleWrite("Reading CSV: " &amp; $fName &amp; @CRLF)
 For $j=1 to $numCols
  For $i = 1 to $numRows
   $lineRead = FileReadLine($fName, $i)
   $splitLineRead = StringSplit($lineRead, ",", 2)
   $array[$i - 1][$j-1] = $splitLineRead[$j-1]
  Next
    Next
EndFunc
Func _PopulateBuilding()
 ConsoleWrite("Populating Building ComboBox" &amp; @CRLF)
    For $i = 1 to $numRows
        GUICtrlSetData($cboBldg, $array[$i - 1][0] &amp; "|")
    Next
EndFunc
Func _PopulateLab()
 ConsoleWrite("Populating Lab ComboBox" &amp; @CRLF)
 For $i = 1 to $numRows
  If $array[$i-1][0] = $sBldg then GUICtrlSetData($cboLab, $array[$i - 1][1] &amp; "|")
    Next
EndFunc
Func _PopulateNetPath()
 ConsoleWrite("Populating Network Paths" &amp; @CRLF)
    For $i = 1 to $numRows
        GUICtrlSetData($aNetPath[$i-1], $array[$i - 1][2] &amp; "|")
  Next
EndFunc

data.csv constains

Bldg0(R1C1),Scanners(R1C2),site-it-fsrootGhostR1C3
Bldg2(R2C1),Electrical Ink Lab (R2C2),R2C3
2,row3col2,row3col3
2,row4col2,row4col3
3B,row5col2,row5col3
5,Clouseau Lab,site-it-fsrootCV-LabsFSGhostB5_Clouseau_Ghost
5,row6col2,row6col3
9999,EOF,EOF
Edited by ericgus

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, ericgus. Are you using the full version of SciTe? I see about 9 errors right away that would keep you from even running your script (Your ConsoleWrite not being closed correctly on line 16, an incorrect If statement on line 39, etc. etc.). I would suggest running a Syntax Check by hitting Ctrl + F5 and resolving these syntax errors. Then you'll be in a better position to see where your script is actually breaking ;)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Gus

Yes, full ver of SciTe.

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:Ghost Scriptingredo.au3" /UserParams

+>05:50:11 Starting AutoIt3Wrapper v.2.1.0.8 Environment(Language:0409 Keyboard:00000409 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64)

>Running AU3Check (1.54.22.0) from:C:Program Files (x86)AutoIt3

+>05:50:12 AU3Check ended.rc:0

>Running:(3.3.8.1):C:Program Files (x86)AutoIt3autoit3_x64.exe "C:Ghost Scriptingredo.au3"

NumRows=8

Reading CSV: data.csv

Populating Building ComboBox

Populating Network Paths

Populating Lab ComboBox

+>05:50:16 AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 7.246

..and it gets the csv read: _ArrayDisplay($array) shows properly. After that I'm just not getting my gui to popup,...something with mixing methods having to do with GUISetState() I assume .

Share this post


Link to post
Share on other sites
BrewManNH

Your problem is that you're using GUISetState for controls when you should be using GUICtrlSetState for them. Second, the code under the While loop that's not in a function will never be executed because it will never get past the endless loop of the While statement.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites
Gus

Changed to GUICtrlSetState and it's showing now but as BrewManNH stated the loop doesn't close until GUI is closed. So how/where do I determine what the selected value is and them move on to the next combobox?

Share this post


Link to post
Share on other sites
BrewManNH

Try this, you will probably have to manipulate it to get to do what you're looking to do, but should help point the way.

#include <buttonconstants.au3>
#include <comboconstants.au3>
#include <guiconstantsex.au3>
#include <guicombobox.au3>
#include <windowsconstants.au3>
#include <file.au3>
#include <array.au3>
; $fName = @ScriptDir & "data.csv"
$fName = "data.csv" ; Data Format: Building, Lab, Network Path to Ghost Inmage Storage
Global $numCols = 3
Global $numRows = UBound(StringRegExp(FileRead($fName), ".+(?=v+|$)", 3))
Global $array[$numRows][$numCols]
Global $aNetPath[$numRows]
Global $sLab_Old = "", $sBldg_Old = ""

ConsoleWrite("NumRows=" & $numRows & @CRLF)
_ReadCSV()
_ArrayDisplay($array)
$frmMain = GUICreate("Test", 519, 118, 192, 124)
$cboBldg = GUICtrlCreateCombo("", 8, 32, 145, 25, BitOR($GUI_SS_DEFAULT_COMBO, $CBS_SIMPLE, $WS_HSCROLL))
$cboLab = GUICtrlCreateCombo("", 176, 32, 145, 25, BitOR($GUI_SS_DEFAULT_COMBO, $CBS_SIMPLE, $WS_HSCROLL))
GUICtrlSetState(-1, $GUI_HIDE)
$btnNext = GUICtrlCreateButton("Next", 400, 72, 75, 25)
GUICtrlSetState(-1, $GUI_HIDE)
$btnAbort = GUICtrlCreateButton("Quit", 25, 72, 60)
GUISetState()
_PopulateBuilding()
_PopulateNetPath()
While 1
    $sLab = GUICtrlRead($cboLab)
    If $sLab <> $sLab_Old And _GUICtrlComboBox_GetDroppedState($cboLab) = False Then
        $sLab_Old = $sLab
    EndIf
    $sBldg = GUICtrlRead($cboBldg)
    ; If combo has changed AND closed.  If you don't check for closure, the code process as the mouse highlights the options in the dropdown
    If $sBldg <> $sBldg_Old And _GUICtrlComboBox_GetDroppedState($cboBldg) = False Then
        $sBldg_Old = $sBldg ;Reset the current text to prevent flicker from constant redrawing
        _PopulateLab()
    EndIf
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $btnAbort
            Exit
        Case $cboBldg
            ; change to next combo ($cboLab)
            GUICtrlSetState($cboBldg, $GUI_HIDE)
            GUICtrlCreateLabel("Building Selected >> " & $sBldg, 8, 32, 145, 25)
            GUICtrlSetState($cboLab, $GUI_SHOW)
        Case $btnNext
            ConsoleWrite("Building: " & $sBldg & @CRLF)
            ConsoleWrite("Lab: " & $sLab & @CRLF)
;~          ConsoleWrite ("Share: " & $sNetpath & @CRLF)
            ;***************************
            ;**********   Is this where I should jump to a second form after Building, Lab, and Share are set? It doesn't seem so but....
            ;************************
        Case $cboLab
            ; Both Selections are made so show button to progress
            GUICtrlCreateLabel("Lab Selected >> " & 176, 32, 145, 25)
            GUICtrlSetState($btnNext, $GUI_SHOW)
    EndSwitch
WEnd

; ***************
; ** FUNCTIONS **
; ***************
Func _ReadCSV()
    ConsoleWrite("Reading CSV: " & $fName & @CRLF)
    For $j = 1 To $numCols
        For $i = 1 To $numRows
            $lineRead = FileReadLine($fName, $i)
            $splitLineRead = StringSplit($lineRead, ",", 2)
            $array[$i - 1][$j - 1] = $splitLineRead[$j - 1]
        Next
    Next
EndFunc   ;==>_ReadCSV
Func _PopulateBuilding()
    ConsoleWrite("Populating Building ComboBox" & @CRLF)
    For $i = 1 To $numRows
        GUICtrlSetData($cboBldg, $array[$i - 1][0] & "|")
    Next
EndFunc   ;==>_PopulateBuilding
Func _PopulateLab()
    ConsoleWrite("Populating Lab ComboBox" & @CRLF)
    For $i = 1 To $numRows
        If $array[$i - 1][0] = $sBldg Then GUICtrlSetData($cboLab, $array[$i - 1][1] & "|")
    Next
EndFunc   ;==>_PopulateLab
Func _PopulateNetPath()
    ConsoleWrite("Populating Network Paths" & @CRLF)
    For $i = 1 To $numRows
        GUICtrlSetData($aNetPath[$i - 1], $array[$i - 1][2] & "|")
    Next
EndFunc   ;==>_PopulateNetPath

EDIT: I have updated the above script, now it's only using one While loop instead of 2.

Edited by BrewManNH

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites
BrewManNH

Edited the script above, now only using one While loop instead of 2.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites
Gus

Based on your edit, added in the show/hide so it didn't leave the combobox.

Case $cboLab
            ; Both Selections are made so show button to progress
   GUICtrlSetState($cboLab, $GUI_HIDE)
   GUICtrlCreateLabel("Lab Selected >> " & $sLab, 176, 32, 145, 25)
   GUICtrlSetState(-1, $GUI_SHOW)
            GUICtrlSetState($btnNext, $GUI_SHOW)

I also just noticed that there are dupes in the Building list (1st combo). As written, they can't simply be tossed out because the array's index/count is based 'per line/row'. The building combobox must be populated and +1 only when it doesn't match the next. I had thought so long as there are not more than 2 in a row of the same building then the code below should have worked..alas it doesn't. In the case of more than 2, the below is still going sequentially.. in which case an offset for the number of matches in a row needs to be added.. I can see that being a problem however when the end of the array is reached..

Func _PopulateBuilding()
    For $i = 1 To $numRows
  While $i<=$numRows-1 ; don't go over array boundary
   If $array[$i-1][0] <> $array[$i][0] Then
    GUICtrlSetData($cboBldg, $array[$i - 1][0] & "|")
   EndIf
  WEnd
    Next
EndFunc   ;==>_PopulateBuilding
Edited by Gus

Share this post


Link to post
Share on other sites
Gus

8+3 vs long filenames.. Is there an easy way to convert a longfilename to a short filename which can be passed to the cmdline?

Edited by Gus

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×