|
|
|||||||
Hi there, I'm getting the hang of kixtart but maybe someone can help me out with this problem. I use KiXGUI 1.0 also to get that nice interface. Trough a function (a part is shown below) I read strings from a ini file: Code:
Many of you will know this code. I ripped it from the internet. With the use of the ini file it works fine, but when a macro is defined the string would not recognize the part of the string (\\servername\$USERID). Can someone help me out how to read or convert this so the username is given right? Sorry for the worse english. Martin |
||||||||
|
|
|||||||
I don't see where in your string you define a macro. See the MapDrive() UDF as it demonstrates how to resolve macros inside a text string. |
||||||||
|
|
|||||||
Sorry I misspelled my line. I use \\servername\@USERID in my ini file as followed: MapDrive1=u,\\ servername \@USERID The @USERID isn't translated. |
||||||||
|
|
|||||||
yep. replace: Use $aParms[0] + ":" $aParms[1] with: $nul=execute(Use $aParms[0] + ":" $aParms[1]) and see if that does the trick. |
||||||||
|
|
|||||||
I will try. But not now |
||||||||
|
|
|||||||
Quote: see my sig to get an even nicer interface |
||||||||
|
|
|||||||
Quote: After that I get (while running the script) "Error in expression". |
||||||||
|
|
|||||||
Quote:Quote: Yep, you convinced me. I use the kixforms.dll in combination with the wkix32.exe and that ugly prompt box is gone |
||||||||
|
|
|||||||
If InStr($aParms[1],'@@') $rc=Execute('$aParms[1]="'+$aParms[1]+'"') EndIf This did the trick. Many thanks |
||||||||
|
|
|||||||
the execute rules sometimes get us, specially if novarsinstrings is set to on. glad to hear you worked it out yourself. |