[Gambas-user] Coding problem / bug ?

Benoit Minisini gambas at ...1...
Sat May 12 01:41:32 CEST 2007


On vendredi 11 mai 2007, Steven Lobbezoo wrote:
> Hi,
>
> I do the following :
>   Tmp3 = Mid$(Tag[1], 1, Len(Tag[1]) - 2)
>   IF Tres.Fields[Tmp3].Type = db.Blob THEN ' we have one !
>       Tmp2 = Tres[Tmp3]
>
> On the IF statement I get an error :
> 	Unknown field : file_name01
>
> When I look into the vars I get :
> 	Tag[1] : file_name01
> 	TMP3 : file_name
> Which exactly what I want.
> If look into :  Tres.Fields[Tmp3].Type
> I get 9 <- exactly correct !
>
> So all is in order Tres (Result) is there, tyhe field is there, the vars
> are filled ... But still this error. As if Gambas uses Tag[1] where i write
> Tmp3 in the IF statement.
>
> Thanks,
> Steven
>

Which version of Gambas do you use?

-- 
Benoit Minisini




More information about the User mailing list